Skip to main content

Exploring Calculus with Maple Introductory Calculus

Section 8.2 Common Plot Options

TableΒ 8.1 lists the most frequently used optional parameters.

Aside

Table 8.1. A list of common optional parameters for the plot() command
Parameter Description
x=a..b
Plot over the interval \(x\in[a,b]\text{.}\)
y=c..d
Plot over the interval \(y\in[c,d]\text{.}\)
colour=cname
Specify the colour of the graph. A list of plot colours can be found by typing ?colours on a new Maple input.
discont=true
Show discontinuities in a function. This may need to be included to properly display the discontinuities in certain functions when you plot them.
linestyle=lstyle
Specify the style of the line (solid, dash, dot, etc.).
gridlines=true
Include gridlines.
numpoints=n
Set the minimum number of points plotted for a smoother graph (Default \(200\)).
grid=[ m ,n ]
Set the number of initial points used to plot a graph (Default \(26 \times 26\)).
scaling=constrained
Force axes to use the same scale (so a circle should appear perfectly round).
For some functions with vertical asymptotes, Maple does not always display the discontinuities correctly. Setting the parameter discont=true may properly display the discontinuities in these functions.

Aside

> plot(tan(x), x=-2*Pi..2*Pi, y=-10..10, linestyle=dash, discont=true);
In some modern versions of Maple, the graph of \(\tan(x)\) above can be obtained even without including the discont=true option in the plot() command.
An example of a function that cannot be properly displayed without the discont=true parameter can be found in Limits and Piecewise Functions.