style - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Plot 2-D Style Options

 

Calling Sequence

Parameters

Description

Examples

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

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.

Examples

plotx,x=0..4,style=point

plotx2,x=4..4,style=point

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

p1plotsinx,x=π..π,style=point:

p2plotcosx,x=π..π,style=line:

plotsdisplayp1,p2

bowtieMatrix0,0,0,1,0.5,0.75,1,1,1,0,0.50,0.25,0,0,datatype=float:

plotspolygonplotbowtie,color=Orange

The same plot with no outline.

plotspolygonplotbowtie,color=Orange,style=polygon

See Also

plot/options

plot/structure