Re: Showing a limited GrayLevel
- To: mathgroup at smc.vnet.net
- Subject: [mg19049] Re: Showing a limited GrayLevel
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Thu, 5 Aug 1999 01:34:42 -0400
- References: <7o5eg9$rf1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Steve, Use the ColorFunction option: ContourPlot[x, {x, 0, 1}, {y, 0, 1}, ColorFunction -> (GrayLevel[ 0.5 (# + 1)] &)] ContourPlot[x, {x, 0, 1}, {y, 0, 1}, ColorFunction -> (Hue[2/3#] &)] 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 Steve Hocter <steve at weinstein.maths.keele.ac.uk> wrote in message news:7o5eg9$rf1 at smc.vnet.net... > I have a quick question about changing the GrayLevel in contour plots. > > When using ContourPlot, how is it possible to limit the GrayLevel range? > That is, instead of GrayLevel being scaled between 0 and 1, the contours > would be shown between 0.5 and 1 cutting out any totally black parts of the > plot. > > Thanks, > > Steve. > > -- > ----------------------------------------------------------------- > | Steven T. Hocter Dept Of Maths | > | mad00 at keele.ac.uk Keele University | > | steve at weinstein.maths.keele.ac.uk | > ----------------------------------------------------------------- >