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