Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how

Legacy Documentation

Mathematica 8 (2010)

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

ColorFunction

ColorFunction
is an option for graphics functions that specifies a function to apply to determine colors of elements.
  • With ColorFunction ->func, the arguments supplied to func are as follows:
Plot , ListLinePlot , ListLogPlot , etc. x, y
ParametricPlot x, y, u or x, y, u, v
RegionPlot x, y
ContourPlot and ListContourPlot f contour levels
ParametricPlot3D x, y, z, u or x, y, z, u, v
RegionPlot3D x, y, z
  • With the usual default setting ColorFunctionScaling ->True , all arguments supplied to func are scaled to lie in the range 0 to 1.
  • The list of possible color function names is given by ColorData .
  • Combinations of directives can be specified using Directive .
  • In 3D graphics, ColorFunction by default specifies diffuse colors for surfaces.
(4)
Color the surface by height:
Use predefined gradients:
Color a curve:
Color a matrix:
Color the surface by height:
Out[1]=
Use predefined gradients:
Out[1]=
Out[2]=
Color a curve:
Out[1]=
Color a matrix:
Out[1]=
(1)
Define a one-dimensional color function:
(1)
Use predefined color gradients from ColorData :
New in 2 | Last modified in 6


ja zh

AltStyle によって変換されたページ (->オリジナル) /