plots[interactive] - interactive plotting maplet
Calling Sequence
interactive(expr, variables)
Parameters
expr
-
(optional) expression
variables
(optional) expression of the form variables=varset
Description
The interactive command is part of the plots package. It allows you to build plots interactively.
The Plot Builder provides a more flexible interface to building a plot interactively. For details, see Using the Interactive Plot Builder.
If expr is an algebraic expression or a list, it is taken to be a single expression to be plotted. If expr is a set of algebraic expressions or lists, these are taken to be separate expressions to be plotted in the same graph.
If present, the variables option provides a complete list of the variables used in plotting.
To generate a plot interactively, use the interactive(expr) command. Follow the instructions in the subsequently displayed dialogs. Maple will generate a plot and display it in the worksheet.
The interactive command can create only one type of plot (for example, plot from an expression, implicitly defined plot, complex plot) at a time. To combine different types of plots, first use the interactive plot builder to plot them separately, then use the plots[display] command to show them together. See example below.
Examples
with⁡plots:
interactive⁡sin⁡x+1
interactive⁡cos⁡w,tan⁡w+z
interactive⁡exp⁡x,variables=x,y
To plot the following expressions with different plot types on the same axes, try plotting the first expression as a 3-D complex plot, and the second as a 3-D plot. Notice that the options change to only allow plot structures which can handle the given expression. Remember that both plots must have the same dimension. For 2-D plots, you can also use the dualaxisplot command to display more than one expression in a single plot.
A≔interactive⁡xx2−1:
B≔interactive⁡yx2−1:
display⁡A,B
See Also
plots, plots[display], plots[dualaxisplot], plots[interactiveparams], Using the Interactive Plot Builder
Download Help Document