Skip to content

ContourPlot

Draws contours of a 2-variable function.

$ wo 'Head[ContourPlot[x^2 + y^2, {x, -1, 1}, {y, -1, 1}]]'
Graphics
$ wo 'Head[ContourPlot[Sin[x] Sin[y], {x, -3, 3}, {y, -3, 3}, Contours -> {-0.5, 0, 0.5}, ContourShading -> False]]'
Graphics

Options

In addition to the common options above, ContourPlot recognizes:

  • Contours — an integer (number of contours) or a list of levels.
  • ContourStyle — directives applied to the contour lines.
  • ContourShadingTrue / False / Automatic.
  • ColorFunction — color map for the shaded regions.
  • PlotPoints / MaxRecursion — sampling control.