Skip to content

Plot ​

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

Wolfram LanguagePlot
Plot(...)Wolfram's own Plot, 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

Examples

Basic #

Sine over one period

live ↗
InPlot(sin⁡(x),(x,−6.283,6.283))\mathrm{Plot}(\sin(x), (x,-6.283,6.283))OutPlot(sin⁡(x),(x,−6.283,6.283))\mathrm{Plot}(\sin(x), (x,-6.283,6.283))

A list of expressions overlays one curve per entry

live ↗
InPlot([sin⁡(x),cos⁡(x),sin⁡(x)cos⁡(x)],(x,−6.283,6.283))\mathrm{Plot}(\bigl\lbrack\sin(x), \cos(x), \sin(x)\cos(x)\bigr\rbrack, (x,-6.283,6.283))OutPlot([sin⁡(x),cos⁡(x),sin⁡(x)cos⁡(x)],(x,−6.283,6.283))\mathrm{Plot}(\bigl\lbrack\sin(x), \cos(x), \sin(x)\cos(x)\bigr\rbrack, (x,-6.283,6.283))
Options #

A log y-scale makes an exponential a straight line

live ↗
InPlot(ex,(x,0,5),(ScalingFunctions,Log))\mathrm{Plot}(e^{x}, (x,0,5), (\mathrm{ScalingFunctions},\text{Log}))OutPlot(ex,(x,0,5),(ScalingFunctions,Log))\mathrm{Plot}(e^{x}, (x,0,5), (\mathrm{ScalingFunctions},\text{Log}))

Grid lines, a filled area, a legend, an axis label, a forced range and a title

live ↗
InPlot([sin⁡(x),cos⁡(x)],(x,−6.283,6.283),(GridLines,True),(Filling,True),(PlotLegends,True),(AxesLabel,x),(PlotRange,(−1.2,1.2)),(PlotLabel,sin & cos))\mathrm{Plot}(\bigl\lbrack\sin(x), \cos(x)\bigr\rbrack, (x,-6.283,6.283), (\mathrm{GridLines},\mathrm{True}), (\mathrm{Filling},\mathrm{True}), (\mathrm{PlotLegends},\mathrm{True}), (\mathrm{AxesLabel},\text{x}), (\mathrm{PlotRange},(-1.2,1.2)), (\mathrm{PlotLabel},\text{sin \& cos}))OutPlot([sin⁡(x),cos⁡(x)],(x,−6.283,6.283),(GridLines,True),(Filling,True),(PlotLegends,True),(AxesLabel,x),(PlotRange,(−1.2,1.2)),(PlotLabel,sin & cos))\mathrm{Plot}(\bigl\lbrack\sin(x), \cos(x)\bigr\rbrack, (x,-6.283,6.283), (\mathrm{GridLines},\mathrm{True}), (\mathrm{Filling},\mathrm{True}), (\mathrm{PlotLegends},\mathrm{True}), (\mathrm{AxesLabel},\text{x}), (\mathrm{PlotRange},(-1.2,1.2)), (\mathrm{PlotLabel},\text{sin \& cos}))

Axes off

live ↗
InPlot(sin⁡(x),(x,−6.283,6.283),(Axes,false))\mathrm{Plot}(\sin(x), (x,-6.283,6.283), (\mathrm{Axes},\text{false}))OutPlot(sin⁡(x),(x,−6.283,6.283),(Axes,false))\mathrm{Plot}(\sin(x), (x,-6.283,6.283), (\mathrm{Axes},\text{false}))
About
Examples5
CrosswalkWolfram Language