RE: ColorFunction
- To: mathgroup at smc.vnet.net
- Subject: [mg27762] RE: [mg27730] ColorFunction
- From: "David Park" <djmp at earthlink.net>
- Date: Wed, 14 Mar 2001 04:07:02 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Michael, You want to add the Option: ColorFunctionScaling -> False, to your ContourPlot. Then the colors will be determined by the actual temperature value. With the default value of True, colors are determined by their relative position between the actual maximum and minimum values in the particular plot. You may also wish to alter your color function so that it is based on actual temperature. David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ > From: Michael Wild [mailto:wild at ilt.fhg.de] To: mathgroup at smc.vnet.net > > Dear Colleagues, > I am trying to display a r-z-temperature field with ContourPlot. > How can I modify the ColorFunction command such that the > temperature range from > 100-200 K > 200-300 K > etc. is displayed in the same color no matter if the total > temperature range of the plot is 0 to 500 K or > 0 to 1000 K. > My current plot command is > ContourPlot[templim[r, z], {r, 0, 2}, {z, 0, 4}, PlotRange -> All, > ColorFunction -> (Hue[0.7(1 - 0.79*#)] &), > PlotPoints -> 150, AspectRatio -> 1/2, > Contours -> {100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, > 1200, > 1300, 1400, 1500}] > Your help is very much appreciated > thanks > Michael > > >