Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2008

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

Search the Archive

Re: Re: Color space conversion in Mathematica v6.0

  • To: mathgroup at
  • Subject: [mg89052] Re: [mg89008] Re: Color space conversion in Mathematica v6.0
  • From: Curtis Osterhoudt <cfo at>
  • Date: Sat, 24 May 2008 03:57:10 -0400 (EDT)
  • Organization: LANL
  • References: <g11ram$ag5$> <g134dc$lvi$> <>
  • Reply-to: cfo at

  Hi, Bob, 

    What about something like

Plot3D[Exp[-x^2 - y^2], {x, -2, 2}, {y, -2, 2}, 
 ColorFunction -> 
  Lighter /@ Lighter /@ (ColorData["GrayTones"][#3] &)]


   You should be able to apply "Lighter" to the color function you'd like. 
(It took me a long while to figure this one out, though I had the general gist 
right. Only when I finally browsed to the ref/ColorData page in the help menu 
did I get it.)


On Friday 23 May 2008 01:10:03 Robert Buchanan wrote:
> On May 22, 2:38 am, ragfield <ragfi... at> wrote:
> > (* g is a Graphics expresion *)
> > g//.{c:(_RGBColor|_CMYKColor|_Hue):>ToColor[c,GrayLevel]}
> >
> > It's more complicated for Graphics3D expressions, as you must deal
> > with lighting issues.
> >
> > -Rob
> Thanks for the suggestion. Unfortunately it is just this more
> complicated situation I must deal with. For 2D graphics I am able to
> produce grayscale versions of the color graphics. I am now left with
> the 3D graphics. Some are produced by Plot3D[] and others by
> RegionPlot3D[]. I have tried specifying ColorFunction->"GrayTones",
> but the output seems too dark (too black, not enough gray). If you
> have any further suggestions or can point me to some documentation or
> examples, I would be grateful.
> Thanks,
> Bob

Curtis Osterhoudt
cfo at
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments

  • Prev by Date: Re: How to plot a graph, using a distance matrix
  • Next by Date: Re: LeastSquares using LinearProgramming?
  • Previous by thread: Re: Color space conversion in Mathematica v6.0
  • Next by thread: Re: Re: Color space conversion in Mathematica v6.0