Options for plots are specified as JavaScript dictionaries. Common default options are

colorrgb(0,127,255) - rich azure blue
opacity1

Colors are specified using standard HTML color code strings. Predefined colormaps are also available.

Objects composed of lines have an additional option of thickness that defaults to 1.5 in two dimensions. Due to limitations of WebGL, in three dimensions it renders as 1 on most platforms regardless of the setting.


plot( f, range, options ) — plot of a function over a range given as an array [begin,end] or [begin,end,points]

polarPlot( f, range, options ) — polar plot of a function over an angular range given as an array [begin,end] or [begin,end,points]

listPlot( points, options ) — plot of an array of points

listPlot( points1, points2, …, options ) — plot of an arbitrary number of equally sized arrays of points combined additively in the last coordinate


parametric( vector, xRange, options ) — line plot of a vector function of one variable over a range given as an array [begin,end] or [begin,end,points]

parametric( f, xRange, options ) — line plot of a function of one variable. Less flexible than an explicit vector function but available as a convenience.

parametric( vector, xRange, yRange, options ) — surface plot of a vector function of two variables over ranges given as arrays [begin,end] or [begin,end,points]. An option of colormap allows a function that specifies RGB colors in the range 0 to 1.

For visualizing complex surfaces, an option of complexFunction can be set to 're', 'im' or 'abs' to display the real part, imaginary part or absoluate value of a function returned as the object { re: re, im: im }. Setting the colormap to the string 'complexArgument' rather than a function will then color the surface accordingly without significant computational overhead.
Setting maxFaceSlope to a positive number will omit faces with greater slope, thereby removing artifacts resulting from branch cuts.

parametric( f, xRange, yRange, options ) — surface plot of a function of two variables. Less flexible than an explicit vector function but available as a convenience.

wireframe( vector, xRange, yRange, options ) — wireframe plot of a vector function of two variables over ranges given as arrays [begin,end] or [begin,end,points]

wireframe( f, xRange, yRange, options ) — wireframe plot of a function of two variables. Less flexible than an explicit vector function but available as a convenience.


surfaceFromLines( lines, options ) — surface plot of an array of arrays of data points on individual lines, as for example from numerical integration of a differential equation for consecutive initial conditions

diskFromLines( lines, options ) — surface plot of an array of arrays of data points on individual lines, all starting from the same initial point


slopeField( f, xRange, yRange, options ) — slope field of a function of two variables over ranges given as arrays [begin,end] or [begin,end,points]

slopeField( [ f, g ], xRange, yRange, zRange, options ) — slope field of a two-dimensional vector function of three variables over ranges given as arrays [begin,end] or [begin,end,points]


isoline( f, xRange, yRange, options ) — implicit line plot of a function of two variables over ranges given as arrays [begin,end] or [begin,end,points]

isoband( f, xRange, yRange, options ) — implicit filled contour plot of a function of two variables over ranges given as arrays [begin,end] or [begin,end,points]

isosurface( f, xRange, yRange, zRange, options ) — implicit surface plot of a function of three variables over ranges given as arrays [begin,end] or [begin,end,points]