MathGroup Archive 2008

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

Search the Archive

Re: ContourPlot problem


Thank you! I sent the answer below also to David, and forgot to CC the
group, just in case:

****

Thanks much!

What i don't like so much is that, with ContourShading->True, the appearance
of the plot changes substantially depending on the range in PlotRange --
plus, you're supposed to know the min and max of the function a priori :-)

****



On Fri, Jun 27, 2008 at 5:49 AM, Jean-Marc Gulliet <
jeanmarc.gulliet at gmail.com> wrote:

> Jorge Cortes wrote:
>
>   I've noticed the following problem with ContourPlot (I'm using
>> Mathematica 6..0.3) and a simple exponential function.
>>
>>  If you try the domain {x,-3,3}, {y,-3,3}
>>
>> ContourPlot[Exp[-x^2 - 2 y^2], {x, -3,3}, {y, -3, 3},
>>  Contours -> {.1,.2, .3, .4, .5, .6, .7, .8, .9, 1},
>>  ContourLabels -> True, ContourShading -> False]
>>
>>  you only get one contour (the one corresponding to .1). However, if
>> you shrink the domain to {x,-2,2}, {y,-2,2}, surprisingly you get all
>> the contours (?)
>>
>
> <snip>
>
> Specifying PlotRange -> {-2, 2} or PlotRange -> {-3, 3} will show
> everything. For instance,
>
> ContourPlot[Exp[-x^2 - 2 y^2], {x, -3, 3}, {y, -3, 3},
>  Contours -> {.1, .2, .3, .4, .5, .6, .7, .8, .9, 1},
>  ContourLabels -> True, ContourShading -> False, PlotRange -> {-3, 3}]
>
> Regards,
> -- Jean-Marc
>



  • Prev by Date: Re: documentation specification for Documentation Center-iteration
  • Next by Date: Re: How to show PolarPlot with circles coordinate
  • Previous by thread: Re: ContourPlot problem
  • Next by thread: help about calling external programs through a Button