Skip to content

ContourPlot ​

Wolfram's own ContourPlot, held inert -- the expression is what a worksheet or REPL draws, not something this library computes (see @enumeratio/formats/src/graphics.ts).

Wolfram LanguageContourPlot
ContourPlot(...)Wolfram's own ContourPlot, held inert -- the expression is what a worksheet or REPL draws, not something this library computes (see @enumeratio/formats/src/graphics.ts).
Typed signatures
TypePackageApplies
(any*) -> anyformatsalways

Domain: Graphics·Drawn as Graphics

Details

Draws as a GraphicsBox of data coordinates: a LineBox per level, colored along the gradient (ColorFunction, Reverse), or with Filled -> True one RasterBox of the bands between them. Levels is a count or a list of values; N is the samples per side.

XLabel and YLabel caption the frame, PlotLabel (Label) the figure.

Examples

Basic #

Contours of a saddle

live ↗
InContourPlot(x2−y2,(x,−3,3),(y,−3,3))\mathrm{ContourPlot}(x^2-y^2, (x,-3,3), (y,-3,3))OutContourPlot(x2−y2,(x,−3,3),(y,−3,3))\mathrm{ContourPlot}(x^2-y^2, (x,-3,3), (y,-3,3))
Options #

Filled bands, shaded between the levels: one raster over the whole frame

live ↗
InContourPlot(x2−y2,(x,−3,3),(y,−3,3),(Filled,True))\mathrm{ContourPlot}(x^2-y^2, (x,-3,3), (y,-3,3), (\mathrm{Filled},\mathrm{True}))OutContourPlot(x2−y2,(x,−3,3),(y,−3,3),(Filled,True))\mathrm{ContourPlot}(x^2-y^2, (x,-3,3), (y,-3,3), (\mathrm{Filled},\mathrm{True}))

Contours at chosen levels: a line each

live ↗
InContourPlot(x2+y2,(x,−3,3),(y,−3,3),Tuple⁡(Levels,[1,2,4]))\mathrm{ContourPlot}(x^2+y^2, (x,-3,3), (y,-3,3), \operatorname{Tuple}(\mathrm{Levels},\bigl\lbrack1, 2, 4\bigr\rbrack))OutContourPlot(x2+y2,(x,−3,3),(y,−3,3),Tuple⁡(Levels,[1,2,4]))\mathrm{ContourPlot}(x^2+y^2, (x,-3,3), (y,-3,3), \operatorname{Tuple}(\mathrm{Levels},\bigl\lbrack1, 2, 4\bigr\rbrack))
About
Examples3
CrosswalkWolfram Language