﻿ MathCell - Plotting

Options for graphics objects are specified as JavaScript dictionaries. Common default options are

 `color` azure blue `opacity` 1

Colors are specified using standard HTML color code strings. Predefined colormaps can be applied by setting an option of `colormap` equal to the string name of one of the available maps. A reversed colormap can be used by also setting an option of `reverseColormap` to `true`.

Surfaces can be assigned a `group` name for common animation operations.

plot( f, range, options ) — plot of a function over a 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

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

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( 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.

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

slopeField( [ f, g ], xRange, yRange, zRange, options ) — slope field of functions of three variables over ranges given as an array `[begin,end]` or `[begin,end,points]`

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

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]`

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]`