create a 2-D plot - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Graphics : 3-D : smartplot3d

smartplot - create a 2-D plot

smartplot3d - create a 3-D plot

Calling Sequence






algebraic expression(s) to be plotted



The smartplot and smartplot3d routines are used primarily by the graphical user interface to generate initial plots which can be further tailored through use of interactive controls.


The smartplot and smartplot3d commands produce an INTERFACE_SMARTPLOT2D (INTERFACE_SMARTPLOT3D) data structure which provides essential plot options to the graphical user interface.  This "first approximation" of a desired plot command is further processed by the graphical user interface to construct and execute the appropriate plot commands. The result is displayed as a plot.


The smartplot commands accept one or more algebraic expressions or equations. The expressions are analyzed to determine names of variables for each coordinate and distinct colors for each curve or surface. The graphical user interface augments this initial list of plot arguments with additional plot options which are ultimately used in calls to plot procedures such as plot, plot3d, plots[implicitplot], or plots[implicitplot3d] as required. If more than one expression is involved, the resulting individual plots are automatically combined using plots[display].


For two-dimensional plots, a default domain of 10..10 is used.  For three dimensional figures, a default grid of 5..5,5..5 is used. These can be changed in the graphical user interface.


The names are associated with coordinates by analyzing the algebraic expressions and allocating names to coordinates on a first come first served basis. If all coordinates have been allocated names, additional expressions are mapped onto the graph by randomly mapping any new names onto the existing coordinates.


The smartplot procedure cannot be used to plot raw Maple procedures. For example, to plot a sine curve, use smartplot(sin(x)) instead of smartplot(sin).






See Also

display, implicitplot, implicitplot3d, Overview of Plotting, plot, plot3d, Types of Plots

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