is an option for contour plots that specifies the contours to draw.
Contours
is an option for contour plots that specifies the contours to draw.
Details
- The following settings can be given for Contours:
-
n contours at n equally spaced levels Automatic contours chosen automatically {Automatic,n} at most n contours chosen automatically {f1,f2,…} contours at levels fi {{f1,gr1},…} contours drawn with graphics directives gri func a function to be applied to zmin, zmax to get the list of contours - With Automatic settings, "nice" equally spaced contour levels are chosen, whose values minimize the number of digits in their decimal representation.
- In ContourPlot and ListContourPlot, Contours specifies contour lines.
- In ContourPlot3D and ListContourPlot3D, Contours specifies contour surfaces.
- ContourPlot and ContourPlot3D let you give an equation f==g or a list of equations as a way to specify single contours to draw.
Examples
Basic Examples (4)
Automatically select contours:
ContourPlot[x ^ 2 - y ^ 2, {x, -2, 2}, {y, -2, 2}]Select three equally spaced contours:
ContourPlot[x ^ 2 - y ^ 2, {x, -2, 2}, {y, -2, 2}, Contours -> 3]Specify an explicit set of contours:
ContourPlot[x ^ 2 - y ^ 2, {x, -2, 2}, {y, -2, 2}, Contours -> {-1, 0, 1}]Select five contour surfaces in three dimensions:
ContourPlot3D[x ^ 2 + y ^ 2 - z ^ 2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> 5, Mesh -> None]Tech Notes
Related Guides
History
Introduced in 1991 (2.0) | Updated in 2007 (6.0)
Text
Wolfram Research (1991), Contours, Wolfram Language function, https://reference.wolfram.com/language/ref/Contours.html (updated 2007).
CMS
Wolfram Language. 1991. "Contours." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/Contours.html.
APA
Wolfram Language. (1991). Contours. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Contours.html
BibTeX
@misc{reference.wolfram_2026_contours, author="Wolfram Research", title="{Contours}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Contours.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_contours, organization={Wolfram Research}, title={Contours}, year={2007}, url={https://reference.wolfram.com/language/ref/Contours.html}, note=[Accessed: 12-June-2026]}