MathGroup Archive 1999

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

Search the Archive

Re: ContourPlot problem

  • To: mathgroup at
  • Subject: [mg15507] Re: ContourPlot problem
  • From: "Allan Hayes" <hay at>
  • Date: Mon, 18 Jan 1999 23:47:11 -0500
  • References: <77uukf$>
  • Sender: owner-wri-mathgroup at

Pedro A Santos wrote in message <77uukf$kb8 at>...

>When I give the command
>  PlotPoints ->{50,50},
>  Contours -> {.1,.2,.3,.4,.5,.6,.7,.8,.9,.99, .99999999},
>  ContourShading ->False]
>I get what would be to expect, i.e. all the contours. But if I change
>slightly the domain,
>say  "{x,-1.1,1.1},{y,-1.1,1.1}", the majority of the contours
>disappear. And they do not appear even if I increase PlotPoints to 200
>or more.
>Does anybody know the reason of this strange behaviour? And how to avoid


This is caused by Mathematica showing only what it thinks is interesting
With "{x,-1.1,1.1},{y,-1.1,1.1}" the same data is available as in the
first case but not all of it is displayed.

PlotPoints ->{50,50},
Contours -> {.1,.2,.3,.4,.5,.6,.7,.8,.9,.99, .99999999}, ContourShading

We can correct this retrospectively using Show

Show[%, PlotRange->All];

or we can use the option in ContourPlot:

PlotPoints ->{50,50},
Contours -> {.1,.2,.3,.4,.5,.6,.7,.8,.9,.99, .99999999}, ContourShading
PlotRange -> All];

If we don't want to see everything we can specify the range of  heights
by PlotRange -> {0,1.2}, for example.


Allan Hayes
Mathematica Training and Consulting
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

  • Prev by Date: RE: ? scatterplots with differently sized labels and dots ?
  • Next by Date: Re: Symbolic Derivative of Piecewise Contin Fcn
  • Previous by thread: ContourPlot problem
  • Next by thread: Re: ContourPlot problem