Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: ContourPlot problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90084] Re: ContourPlot problem
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 28 Jun 2008 05:53:00 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <g42ere$no5$1@smc.vnet.net>

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: How to show PolarPlot with circles coordinate
  • Next by Date: Re: How to show PolarPlot with circles coordinate
  • Previous by thread: ContourPlot problem
  • Next by thread: Re: ContourPlot problem