Up: Math 696

Quick Reference for Maple 2d Plots

Some basic plot commands

plot(x^4+sin(Pi*x),x=-1..1);

Plots the graph of y = x4 + sin(Pi*x) for x between -1 and 1.

implicitplot(x^2+y^2=1,x=-1..1,y=-1..1);

Plots the unit circle defined implicitly by the equation x2 + y2 = 1.

plot( [cos(t), sin(t), t=0..2*Pi] );

Plots the unit circle defined by the parametric equations x = cos(t) and y = sin(t).

polarplot(1, t=0..2*Pi);

Plots the unit circle defined by the polar equation r = 1.

display( [plot1, plot2] );

Displays the two plots named plot1 and plot2 together. (There is also an animate command.)

plot( [ [1,2], [-3,4], [5,6] ] );

Plots two line segments, one from the point (1,2) to the point (-3,4) and the second from the point (-3,4) to the point (5,6).

polygonplot( [ [1,2], [-3,4], [5,6] ] );

Plots a solid triangle with vertices (1,2), (-3,4), and (5,6).

Some plot options

axes=NONE

Removes the coordinate axes from the plot. Other values for axes are NORMAL, FRAMED, and BOXED.

scaling=CONSTRAINED

Makes the scale the same on both axes. The alternative is UNCONSTRAINED.

numpoints=100

The minimum number of points that Maple computes to make the plot. Larger values should help smooth out corners in the plot.

color=red

Plots the curve in red. Maple knows common colors such as blue, green, yellow, violet; also maroon, the color of Texas A&M.

title=`Bonfire`

Makes a title for the plot. Remember to enclose the title in backquotes.


Up: Math 696

Comments to Harold P. Boas.
Created Oct 7, 1996. Last modified Oct 9, 1996.