MathGroup Archive 1999

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

Search the Archive

Re: Showing a limited GrayLevel

  • To: mathgroup at
  • Subject: [mg19052] Re: Showing a limited GrayLevel
  • From: paulh at (P.J. Hinton)
  • Date: Thu, 5 Aug 1999 01:34:44 -0400
  • Organization: "Wolfram Research, Inc."
  • References: <7o5eg9$>
  • Sender: owner-wri-mathgroup at

In article <7o5eg9$rf1 at>, Steve Hocter <steve at> writes:
> 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

You may want to use the ContourGraphics option ColorFunction, defining it 
to be something like this:

ColorFunction :> (
    # <= 0.5, (* scaled value would have produced GrayLevel[0.5] or less *)
    (#; GrayLevel[1]), (* ignore value and return white directive, *)
    GrayLevel (* otherwise, used the scaled value *)

P.J. Hinton
Mathematica Programming Group           paulh at
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.

  • Prev by Date: Re: Any book for the frontend?
  • Next by Date: Re: Conversion of output
  • Previous by thread: Re: Showing a limited GrayLevel
  • Next by thread: Re: Showing a limited GrayLevel