MathGroup Archive 2002

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

Search the Archive

Re: Fill the space surrounded by two contours lines with different colors


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];


  • Prev by Date: Re: Coefficient problem
  • Next by Date: Re: non zero result after multiplying with zero.
  • Previous by thread: Re: Fill the space surrounded by two contours lines with different colors
  • Next by thread: Re: Fill the space surrounded by two contours lines with different colors