MathGroup Archive 2009

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

Search the Archive

Mapping colours in DensityPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104139] Mapping colours in DensityPlot
  • From: "SeekUp" <seek.up.girl at gmail.com>
  • Date: Wed, 21 Oct 2009 06:27:39 -0400 (EDT)

I am using the following command to do a DensityPlot in grayscale. The 
grayscale range is from 0-255, but I need to map my function to a grey-level 
maximum of 200. How do I define a new GrayLevel with a max gray level of 
200? (Or alternately change the mapping so make the max level 200?)



DensityPlot[Mod[elementphase[x, y], 2 \[Pi]], {x, -0.008, 0.008}, 
{y, -0.006, 0.006}, PlotRange -> All, PlotPoints -> 120, ColorFunction -> 
GrayLevel, Frame -> False, ImageSize -> {{0, 800}, {0, 600}}, AspectRatio -> 
600/800]



Any suggestions will be appreciated, although I'm a Mathematica newbie, so 
an example of what to do rather than a broad instruction would be 
invaluable.






  • Prev by Date: Re: How to get data from solvin' numerically differential equation?
  • Next by Date: Re: How to get data from solvin' numerically differential equation?
  • Previous by thread: Wolfram|Alpha Homework Day
  • Next by thread: Re: Mapping colours in DensityPlot