Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Is it possible to reverse "Color Schames" function ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92971] Re: Is it possible to reverse "Color Schames" function ?
  • From: p.sturny at gmail.com
  • Date: Wed, 22 Oct 2008 05:34:48 -0400 (EDT)
  • References: <gdja3r$idc$1@smc.vnet.net> <gdkajk$4qm$1@smc.vnet.net>

On 21 oct, 12:23, Jon McLoone <j... at wolfram.co.uk> wrote:
> On Oct 21, 2:09 am, p.stu... at gmail.com wrote:
>
> > Hello,
>
> > I'm a student from Univerity of applied sciences Western Switzerland.
>
> > I would like to know,  if it's possible to reverse the Color Schemes
> > ( "Gradients").
>
> > Exemple:  with "GrayTones"  from white to grey instead  grey to w=
hi=
> te.
>
> > Thanks for your support.
>
> > Best regards from Switzerland.
>
> In the usual usage such as
> ContourPlot[x y, {x, 0, 1}, {y, 0, 1}, ColorFunction -> "GrayTones"]
>
> This is a compact notation for the more explicit ColorData function
> ColorData["GrayTones"][x] where 0<x<1.
> I, in this example...
>
> ContourPlot[x y, {x, 0, 1}, {y, 0, 1},
>  ColorFunction -> (ColorData["GrayTones"][#] &)]
>
> You can reverse that with
> ContourPlot[x y, {x, 0, 1}, {y, 0, 1},
>  ColorFunction -> (ColorData["GrayTones"][1-#] &)]

Thanks a lot! It's perfect!


  • Prev by Date: Re: Mathematica memory management
  • Next by Date: How to reduce memory usage of the MathKernel.exe?
  • Previous by thread: Re: Is it possible to reverse "Color Schames" function ?
  • Next by thread: How to run/call a Mathematica Notebook from another Notebook?