ColorDataFunction[range,…]
is a function that represents a color scheme.


ColorDataFunction
ColorDataFunction[range,…]
is a function that represents a color scheme.
Details

- ColorDataFunction works like Function.
- ColorDataFunction[…][par] finds the color corresponding to parameter par in the color scheme represented by the ColorDataFunction.
- ColorData["scheme"] gives a ColorDataFunction object.
Examples
open all close allBasic Examples (3)
ColorData returns a ColorDataFunction object:
Scope (5)
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:
Properties & Relations (2)
ColorDataFunction from gradients and physical schemes clips values outside of the ranges:
ColorDataFunction from indexed schemes repeats the colors periodically:
Possible Issues (1)
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:
See Also
Related Guides
History
Text
Wolfram Research (2007), ColorDataFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorDataFunction.html.
CMS
Wolfram Language. 2007. "ColorDataFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ColorDataFunction.html.
APA
Wolfram Language. (2007). ColorDataFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColorDataFunction.html
BibTeX
@misc{reference.wolfram_2025_colordatafunction, author="Wolfram Research", title="{ColorDataFunction}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/ColorDataFunction.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_colordatafunction, organization={Wolfram Research}, title={ColorDataFunction}, year={2007}, url={https://reference.wolfram.com/language/ref/ColorDataFunction.html}, note=[Accessed: 08-August-2025]}