interactive plotting maplet - Maple Programming Help

Home : Support : Online Help : Graphics : Packages : plots : plots/interactive

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

 > $\mathrm{with}\left(\mathrm{plots}\right):$
 > $\mathrm{interactive}\left(\mathrm{sin}\left(x\right)+1\right)$
 > $\mathrm{interactive}\left(\left\{\mathrm{cos}\left(w\right),\mathrm{tan}\left(w+z\right)\right\}\right)$
 > $\mathrm{interactive}\left(\mathrm{exp}\left(x\right),\mathrm{variables}=\left[x,y\right]\right)$

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≔\mathrm{interactive}\left(\frac{x}{{x}^{2}-1}\right):$
 > $B≔\mathrm{interactive}\left(\frac{y}{{x}^{2}-1}\right):$
 > $\mathrm{display}\left(A,B\right)$