-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathplotting.html
69 lines (43 loc) · 4.97 KB
/
plotting.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<html>
<head>
<title>MathCell - Plotting</title>
<link rel="stylesheet" type="text/css" href="style.css">
<style></style>
</head>
<body>
<p>Options for plots are specified as JavaScript dictionaries. Common default options are</p>
<table style="margin-left: 1in"><tr><td style="width: 1in">
<code>color</code></td><td>rgb(0,127,255) - rich azure blue
</td></tr><tr><td>
<code>opacity</code></td><td>1
</td></tr></table>
<p>Colors are specified using standard HTML color code strings. Predefined <a href="colormaps.html">colormaps</a> are also available.</p>
<p>Objects composed of lines have an additional option of <code>thickness</code> 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: a numeric option of <code>radius</code> should be used instead.</p>
<br/><p><b>plot( <i>f</i>, range, options )</b> — plot of a function over a range given as an array <code>[begin,end]</code> or <code>[begin,end,points]</code></p>
<p><b>polarPlot( <i>f</i>, range, options )</b> — polar plot of a function over an angular range given as an array <code>[begin,end]</code> or <code>[begin,end,points]</code></p>
<p><b>listPlot( points, options )</b> — plot of an array of points</p>
<p><b>listPlot( points1, points2, …, options )</b> — plot of an arbitrary number of equally sized arrays of points combined additively in the last coordinate</p>
<br/><p><b>parametric( vector, xRange, options )</b> — line plot of a vector function of one variable over a range given as an array <code>[begin,end]</code> or <code>[begin,end,points]</code></p>
<p><b>parametric( <i>f</i>, xRange, options )</b> — line plot of a function of one variable. Less flexible than an explicit vector function but available as a convenience.</p>
<p><b>parametric( vector, xRange, yRange, options )</b> — surface plot of a vector function of two variables over ranges given as arrays <code>[begin,end]</code> or <code>[begin,end,points]</code>. An option of <code>colormap</code> allows a function that specifies RGB colors in the range 0 to 1.</p>
<blockquote>
For visualizing complex surfaces, an option of <code>complexFunction</code> 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 <code>{ re: re, im: im }</code>. Setting the <code>colormap</code> to the string 'complexArgument' rather than a function will then color the surface accordingly without significant computational overhead.
</blockquote>
<blockquote>
Setting <code>maxFaceSlope</code> to a positive number will omit faces with greater slope, thereby removing artifacts resulting from branch cuts.
</blockquote>
<p><b>parametric( <i>f</i>, xRange, yRange, options )</b> — surface plot of a function of two variables. Less flexible than an explicit vector function but available as a convenience.</p>
<p><b>wireframe( vector, xRange, yRange, options )</b> — wireframe plot of a vector function of two variables over ranges given as arrays <code>[begin,end]</code> or <code>[begin,end,points]</code></p>
<p><b>wireframe( <i>f</i>, xRange, yRange, options )</b> — wireframe plot of a function of two variables. Less flexible than an explicit vector function but available as a convenience.</p>
<br/><p><b>surfaceFromLines( lines, options )</b> — 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</p>
<p><b>diskFromLines( lines, options )</b> — surface plot of an array of arrays of data points on individual lines, all starting from the same initial point</p>
<br/><p><b>slopeField( <i>f</i>, xRange, yRange, options )</b> — slope field of a function of two variables over ranges given as arrays <code>[begin,end]</code> or <code>[begin,end,points]</code></p>
<p><b>slopeField( [ <i>f</i>, <i>g</i> ], xRange, yRange, zRange, options )</b> — slope field of a two-dimensional vector function of three variables over ranges given as arrays <code>[begin,end]</code> or <code>[begin,end,points]</code></p>
<br/><p><b>isoline( <i>f</i>, xRange, yRange, options )</b> — implicit line plot of a function of two variables over ranges given as arrays <code>[begin,end]</code> or <code>[begin,end,points]</code></p>
<p><b>isoband( <i>f</i>, xRange, yRange, options )</b> — implicit filled contour plot of a function of two variables over ranges given as arrays <code>[begin,end]</code> or <code>[begin,end,points]</code></p>
<p><b>isosurface( <i>f</i>, xRange, yRange, zRange, options )</b> — implicit surface plot of a function of three variables over ranges given as arrays <code>[begin,end]</code> or <code>[begin,end,points]</code></p>
<blockquote>
These three functions can take an option of <code>level</code> to set the value at which the function is evaluated. The default value is zero.
</blockquote>
</body>
</html>