MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How To invert ColorFunction


Vladimir,

ColorFunction->"Rainbow"

is shorthand for

ColorFunction -> Function[{x, y, z}, ColorData["Rainbow"][z]

where z is the value of the dependent variable scaled to be between 0
and 1.  So, to invert the colors, flip the scale to z is scaled to be
between 1 and 0:

ColorFunction -> Function[{x, y, z}, ColorData["Rainbow"][1 - z]]

To learn more, look up ColorFunction, ColorData, ColorDataFunction,
and Color Schemes in the Doc Center.

Daniel


  • Prev by Date: Re: NotebookGet/Read/EvaluateSelection Issues
  • Next by Date: Re: Re: Testing Mathematica Expressions?
  • Previous by thread: Re: How To invert ColorFunction
  • Next by thread: Re: How To invert ColorFunction