MathGroup Archive 1999

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

Search the Archive

Re: HELP: How to set RGBColor for ContourPlot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg17583] Re: HELP: How to set RGBColor for ContourPlot?
  • From: "Peltio" <peltDOT.ioNOS at PAMiolDOT.it>
  • Date: Mon, 17 May 1999 02:14:31 -0400
  • Organization: Peltio Inc.
  • References: <7hgddb$4br@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Tsz Leung YIP wrote in message <7hgddb$4br at smc.vnet.net>...
>Hello. How should I set RGBColor for ContourPlot?
>
>Suppose that I write>
>Contour[Sin[x],{x,-Pi,Pi},ColorFunction->RGBColor]>
>but it doesn't work.


First of all, the commmand should be ContourPlot,
and the variable range has to be two-dimensional.
What's more you should supply a color function in the form
Hue[#]&  or Hue
GrayLevel[#]& or GrayLevel
RGBColor[a[#],b[#],c[#]] no shortcuts allowed

Try this.

ContourPlot[Sin[x]Cos[y] , {x,-Pi,Pi}, {y,-Pi,Pi},
                      ColorFunction->(RGBColor[#,1-#,.8]&)]


Hope that helps,
Peltio




  • Prev by Date: Re: Is it a bug?
  • Next by Date: Re: Help! How to make the fonts in the help larger?
  • Previous by thread: Re: HELP: How to set RGBColor for ContourPlot?
  • Next by thread: Insertion Point Bug