This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ColorDataFunction

ColorDataFunction
is a function that represents a color scheme.
ColorData returns a ColorDataFunction object:
Return a color when the specific parameters are applied:
Define a color function for the plot:
ColorData returns a ColorDataFunction object:
In[1]:=
Click for copyable input
Out[1]=
 
Return a color when the specific parameters are applied:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Define a color function for the plot:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
ColorData returns a ColorDataFunction object:
ColorDataFunction returns RGB colors when applied to values within a specific range:
Gradients and physical schemes are defined on continuous intervals:
Indexed schemes are defined at discrete values:
Named schemes are defined at specific sets of values:
ColorDataFunction from gradients and physical schemes clips values outside of the ranges:
ColorDataFunction from indexed schemes repeats the colors periodically:
In a plot with multiple ColorFunction slots, the first slot is chosen, if not specified:
Specify a pure function so that the plot is colored by height values:
A raster image of the web-safe colors:
New in 6