Re: Is it possible to reverse "Color Schames" function ?
- To: mathgroup at smc.vnet.net
- Subject: [mg92967] Re: Is it possible to reverse "Color Schames" function ?
- From: Jon McLoone <jonm at wolfram.co.uk>
- Date: Tue, 21 Oct 2008 06:23:52 -0400 (EDT)
- References: <gdja3r$idc$1@smc.vnet.net>
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 whi= 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-#] &)]