Re: Fill the space surrounded by two contours lines with different colors
- To: mathgroup at smc.vnet.net
- Subject: [mg36455] Re: [mg36422] Fill the space surrounded by two contours lines with different colors
- From: BobHanlon at aol.com
- Date: Sat, 7 Sep 2002 02:54:28 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Needs["Graphics`Colors`"]; ContourPlot[Sin[x y], {x, -5, 5}, {y, -5, 5}, ColorFunction -> (If[0.5 < # < 0.7, Red, White] &)]; Bob Hanlon In a message dated 9/6/02 9:52:45 AM, jl_03824 at yahoo.com writes: >Thanks a lot! What if those two curves are produced by >ContourPlot? > >Thanks, > >Jun Lin > >--- BobHanlon at aol.com wrote: >> >> In a message dated 9/6/02 3:53:58 AM, >> jl_03824 at yahoo.com writes: >> >> >I need to fill the space between two contour lines, >> C1 and C2, with >> >red color, and leave the other place white. What >> trick I have to use? >> >Any suggestion and advice will be appreciated. >> >> Needs["Graphics`FilledPlot`"]; >> Needs["Graphics`Colors`"]; >> FilledPlot[{4 - x^2, 3x}, {x, -4, 1}, Fills -> Red];