BUILT-IN MATHEMATICA SYMBOL

# ColorData

ColorData["scheme"]
gives a function that generates colors in the named color scheme when applied to parameter values.

ColorData["scheme", "property"]
gives the specified property of a color scheme.

ColorData["collection"]
gives a list of color schemes in a named collection.

gives a list of named collections of color schemes.

## DetailsDetails

• ColorData["scheme"][par] or ColorData["scheme", par] gives the RGBColor object corresponding to parameter value par in the specified scheme.
• Typical collections of schemes include:
•  "Gradients" continuous normalized color gradients "Indexed" colors indexed by successive integers "Named" collections of named colors "Physical" colors determined by physical parameters
• By default, color gradients have a single parameter that ranges from 0 to 1.
• ColorData[{"gradient", "Reverse"}] gives a color gradient that ranges from 0 to 1 with the order of colors reversed.
• ColorData[{"gradient", {min, max}}] gives a color gradient that ranges from min to max.
• ColorData[n, ...] uses the n indexed color palette.
• Possible properties in ColorData["scheme", "property"] include:
•  "ColorFunction" a color function to be applied to parameters "ColorList" list of colors for finite indexed color schemes "ColorRules" color rules for discrete color schemes "Image" a graphics image showing colors in the scheme "Name" English name for the color scheme "Panel" a clickable panel showing colors in the scheme "ParameterCount" the number of parameters used in the scheme "Range" range of possible values for the first parameter {"Range",i} range of possible values for the parameter
• Ranges are specified as they would be for a slider:
•  {xmin,xmax} continuous values from to {xmin,xmax,dx} discrete values in steps dx {{x1,x2,...}} specific discrete values
• ColorData["scheme"] gives a ColorDataFunction object.

## ExamplesExamplesopen allclose all

### Basic Examples (5)Basic Examples (5)

Return a function that generates colors:

 Out[1]=

Plot a surface with gradient colors:

 Out[1]=

Reverse the order of gradient colors:

 Out[1]=

Use an indexed color scheme for plot styles:

 Out[1]=

Use an indexed color scheme for contour shading:

 Out[1]=