Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Implementation of the Turbo color map
ResourceFunction["TurboColor"][q] interpolates the Turbo color scheme along the parameter q in a range from 0 to 1. Values above 1 and below zero get clamped. |
Evaluate the color map at a single point q=0.1 :
| In[1]:= | |
| Out[1]= | |
Use the color map as the ColorFunction for a DensityPlot:
| In[2]:= | |
| Out[2]= | |
TurboColor automatically threads over lists:
| In[3]:= | |
| Out[3]= | |
Values below zero and above 1 get clamped:
| In[5]:= | |
| Out[5]= | |
TurboColor clamps values and thus needs ColorFunctionScaling to be True to use the whole value range:
| In[6]:= | |
| Out[6]= | |
Rough simulation of the color map with normal vision, Protanopia, Tritanomaly, Achromatomaly and Achromatopsia color blindness:
| In[7]:= | |
| Out[7]= | |
This work is licensed under a Creative Commons Attribution 4.0 International License