ContourPlot

ContourPlot[f,{x,xmin,xmax},{y,ymin,ymax}]

generates a contour plot of f as a function of x and y.

ContourPlot[f==g,{x,xmin,xmax},{y,ymin,ymax}]

plots contour lines for which f=g.

ContourPlot[{f1==g1,f2==g2,},{x,xmin,xmax},{y,ymin,ymax}]

plots several contour lines.

ContourPlot[,{x,y}reg]

takes the variables {x,y} to be in the geometric region reg.

Details and Options

Examples

open allclose all

Basic Examples  (4)

Plot the contours of a function:

In[1]:=
Click for copyable input
Out[1]=

Plot an equation:

In[1]:=
Click for copyable input
Out[1]=

Plot several equations:

In[1]:=
Click for copyable input
Out[1]=

Show a legend for the contours:

In[1]:=
Click for copyable input
Out[1]=

Scope  (20)

Options  (88)

Applications  (6)

Properties & Relations  (6)

Possible Issues  (2)

Neat Examples  (3)

See Also

DensityPlot  ListContourPlot  RegionPlot  Plot3D  ContourPlot3D  SliceContourPlot3D  StreamPlot  StreamDensityPlot  MeshFunctions  ContourLabels  ContourShading  GeoGraphics

Tutorials

Introduced in 1988
(1.0)
| Updated in 2017
(11.1)