 
 
 
 
 
 
Re: HELP: How to set RGBColor for ContourPlot?
- To: mathgroup at smc.vnet.net
- Subject: [mg17594] Re: [mg17547] HELP: How to set RGBColor for ContourPlot?
- From: BobHanlon at aol.com
- Date: Mon, 17 May 1999 02:14:36 -0400
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 5/14/99 8:16:47 AM, tlyip at hkusua.hku.hk writes:
>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.
>
1. You need to use ContourPlot vice Contour
2. A function of a single variable does not generate much of a contour, but 
in any event you need to specify a range in two dimensions
3. RGBColor has arguments, i.e., RGBColor[red, green, blue]
ContourPlot[Sin[x],{x,-Pi,Pi}, {y, -Pi, Pi}, 
  ColorFunction->(RGBColor[#, 0, (1-#)]&)];
ContourPlot[Sin[x*y],{x,-Pi,Pi}, {y, -Pi, Pi}, 
  ColorFunction->(RGBColor[#, 0, (1-#)]&)];
Bob Hanlon

