Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: ContourShading with ListContourPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19387] Re: ContourShading with ListContourPlot
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Mon, 23 Aug 1999 13:57:07 -0400
  • References: <7pl6qn$cfs@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Laurence Lours <lours at bruyeres.cea.fr> wrote in message
news:7pl6qn$cfs at smc.vnet.net...
>
>
> Hello mathgroup,
>
> I want to do contour plots of a list of (x,y,z) points. I found
ListContourPlot from ExtendGraphics`Contour` package, but I would like to
have a colored graph.
> ContourShading->True does not work. Has anyone an idea?
>
> Thanks
> Laurence Lours
> lours at bruyeres.cea.fr
>

Laurence,

You  need to use the option ColorFunction.
For example, with the built in ListContourPlot

ListContourPlot[Table[x^2 + y^2, {x, -2, 2, .1}, {y, -2, 2, .1}],
  ColorFunction -> (Hue[2/3#] &),
  MeshRange -> {{-2, 2}, {-2, 2}}]

In Verrsion 3.x the inputs to the color function were scaled to make so that
the minof the z-plot range became 0  and  the max of the z-plot range became
1.
With Version 4.0 we can  use the option ColorFunctionScaling ->False to stop
this scaling. This makes setting the colors easier.

Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565




  • Prev by Date: Re: Standard Evaluation with UpValues
  • Next by Date: Re: Control Function With NDsolve
  • Previous by thread: ContourShading with ListContourPlot
  • Next by thread: Re: ContourShading with ListContourPlot