style - Maple Help

Plot 2-D Style Options

 Calling Sequence plot(f, h, v, style=s)

Parameters

 f - function(s) to be plotted h - horizontal range v - (optional) vertical range s - line, point, polygon, or polygonoutline

Description

 • 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

$\left[\mathrm{x1},\mathrm{y1},\mathrm{x2},\mathrm{y2},...,\mathrm{xn},\mathrm{yn}\right]$

 or

$[[\mathrm{x1},\mathrm{y1}],[\mathrm{x2},\mathrm{y2}],\mathrm{...},[\mathrm{xn},\mathrm{yn}]]\right\}$

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

Examples

 > $\mathrm{plot}\left(x,x=0..4,\mathrm{style}=\mathrm{point}\right)$
 > $\mathrm{plot}\left({x}^{2},x=-4..4,\mathrm{style}=\mathrm{point}\right)$

A point style sine curve along with a line style cosine curve

 > $\mathrm{p1}≔\mathrm{plot}\left(\mathrm{sin}\left(x\right),x=-\mathrm{Pi}..\mathrm{Pi},\mathrm{style}=\mathrm{point}\right):$
 > $\mathrm{p2}≔\mathrm{plot}\left(\mathrm{cos}\left(x\right),x=-\mathrm{Pi}..\mathrm{Pi},\mathrm{style}=\mathrm{line}\right):$
 > ${\mathrm{plots}}_{\mathrm{display}}\left(\left\{\mathrm{p1},\mathrm{p2}\right\}\right)$
 > $\mathrm{bowtie}≔\mathrm{Matrix}\left(\left[\left[0,0\right],\left[0,1\right],\left[0.5,0.75\right],\left[1,1\right],\left[1,0\right],\left[0.50,0.25\right],\left[0,0\right]\right],\mathrm{datatype}=\mathrm{float}\right):$
 > ${\mathrm{plots}}_{\mathrm{polygonplot}}\left(\mathrm{bowtie},\mathrm{color}="Orange"\right)$

The same plot with no outline.

 > ${\mathrm{plots}}_{\mathrm{polygonplot}}\left(\mathrm{bowtie},\mathrm{color}="Orange",\mathrm{style}=\mathrm{polygon}\right)$