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

MathGroup Archive 2008

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

Search the Archive

ContourPlot problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90039] ContourPlot problem
  • From: Jorge Cortes <jcormon at gmail.com>
  • Date: Fri, 27 Jun 2008 06:15:26 -0400 (EDT)

Hello,

  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 (?)

ContourPlot[Exp[-x^2 - 2 y^2], {x, -2,2}, {y, -2, 2},
 Contours -> {.1,.2, .3, .4, .5, .6, .7, .8, .9, 1},
 ContourLabels -> True, ContourShading -> False]

  Does anybody has an explanation for this? Thanks!

 - Jorge


  • Prev by Date: Re: 0.0 is different with 0?
  • Next by Date: Re: 0.0 is different with 0?
  • Previous by thread: Re: Modulus / Absolute Value
  • Next by thread: Re: ContourPlot problem