interactive plot builder - Maple Help

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

plots[interactive] - interactive plot builder

 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.
 • 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.
 • You can also launch the interactive plot builder in the Standard Worksheet interface from the Tools menu or from the context-sensitive menu of an expression.  For instructions, see plotinterface/interactive.
 • The interactive plot builder 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({ⅇ}^{x},\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)$