Plot 2-D Style Options
Calling Sequence
Parameters
Description
Examples
plot(f, h, v, style=s)
f
-
function(s) to be plotted
h
horizontal range
v
(optional) vertical range
s
line, point, polygon, or polygonoutline
For 2-D plotting, there are four different styles, line, point, polygon (patchnogrid), and polygonoutline (patch). The names in parentheses are aliases for the option values. The default is polygonoutline.
If the style is point, plot simply plots the calculated or given points. These should be given as a list of ordered pairs, that is
x1,y1,x2,y2,...,xn,yn
or
[[x1,y1],[x2,y2],...,[xn,yn]]}
The styles line, polygon, and polygonoutline all draw curves by interpolating between the sample points.
If there are polygons in the plot, then the line style draws polygons as outlines only, the polygonoutline style draws polygons as filled with an outline, and polygon draws the polygons as filled with no outline. If there are no polygons in the plot, then these three options are equivalent.
plot⁡x,x=0..4,style=point
plot⁡x2,x=−4..4,style=point
A point style sine curve along with a line style cosine curve
p1≔plot⁡sin⁡x,x=−π..π,style=point:
p2≔plot⁡cos⁡x,x=−π..π,style=line:
plotsdisplay⁡p1,p2
bowtie≔Matrix⁡0,0,0,1,0.5,0.75,1,1,1,0,0.50,0.25,0,0,datatype=float:
plotspolygonplot⁡bowtie,color=Orange
The same plot with no outline.
plotspolygonplot⁡bowtie,color=Orange,style=polygon
See Also
plot/options
plot/structure
Download Help Document