Plot 2-D Style Options - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : 2-D : Options : plot/style

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

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

p1:=plotsinx,x=π..π,style=point:

p2:=plotcosx,x=π..π,style=line:

plots[display]p1,p2

bowtie:=Matrix0,0,0,1,0.5,0.75,1,1,1,0,0.50,0.25,0,0,datatype=float:

plots[polygonplot]bowtie,color=Orange

The same plot with no outline.

plots[polygonplot]bowtie,color=Orange,style=polygon

See Also

plot/options, plot/structure


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam