ColorFunction

ColorFunction

is an option for graphics functions that specifies a function to apply to determine colors of elements.

Details

Examples

open allclose all

Basic Examples  (5)

Color the surface by height:

In[1]:=
Click for copyable input
Out[1]=

Use predefined gradients:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Color a curve:

In[1]:=
Click for copyable input
Out[1]=

Color a matrix:

In[1]:=
Click for copyable input
Out[1]=

Color a 3D volume:

In[1]:=
Click for copyable input
Out[1]=

Applications  (1)

Properties & Relations  (1)

See Also

ColorFunctionScaling  MeshShading  PlotStyle  NormalsFunction  Blend  ColorData

Tutorials

Introduced in 1991
(2.0)
| Updated in 2012
(9.0)