Message Boards Message Boards

0
|
3829 Views
|
8 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Is there a problem with ContourPlot[] function?

Posted 2 years ago

Attached is an image of a CountourPlot. As you can observe, there is a problem with the contour lines at the center of the plot. I hope it can be repaired soon. enter image description here

POSTED BY: Jürgen Kanz
8 Replies

It is possible to see what is going on using the option Mesh -> All, depending on PlotPoints (and MaxRecursion):

ContourPlot[x^2 - z^2, {x, -10, 10}, {z, -10, 10}, PlotPoints -> 3, Mesh -> All]

enter image description here

POSTED BY: Henrik Schachner

I agree, the problem is more complicated. At least I could finalize my work with 3 PlotPoints.

ContourPlot[x^2 - z^2, {x, -10, 10}, {z, -10, 10}, PlotPoints -> 3]
POSTED BY: Jürgen Kanz

It is more complicated than I thought...

POSTED BY: Gianluca Gorni

Just set PlotPoints to an odd number, so that the middle point is sure to be included:

ContourPlot[x^2 - z^2, {x, -10, 10}, {z, -10, 10}, ImageSize -> Large,
  PlotPoints -> 3]
POSTED BY: Gianluca Gorni

Thank you, works perfectly.

POSTED BY: Jürgen Kanz
Posted 2 years ago

Try PlotPoints->7. The problem still occurs

ContourPlot[x^2 - z^2, {x, -10, 10}, {z, -10, 10}, PlotPoints -> 7]
POSTED BY: Hans Milton
ContourPlot[x^2 - z^2, {x, -10, 10}, {z, -10, 10}, ImageSize -> Large,  PlotPoints -> 60]
POSTED BY: Hans Dolhaine

Thank you.

POSTED BY: Jürgen Kanz
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract