 plots - Maple Programming Help

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

plots

 animatecurve
 create an animation of the drawing of 2-D curves

 Calling Sequence animatecurve(F, r) animatecurve(P)

Parameters

 F - a single curve or a list or set of curves r - horizontal range P - a single curve in parametric form or a list or set of such curves

Options

 • numpoints : minimum number of points in final frame
 • paraminfo : parameter information in title

Description

 • The animatecurve command allows you to visualize the drawing of curves in 2-D space. The curve F can be specified as an expression in one variable or a procedure with one input parameter. For more information about the forms that F can take, see the plot and plot/function help pages.
 • Alternatively, the curve can be provided in parametric form, which is also described in the plot and plot/function help pages. Note that, if F or P is a set or list, it cannot have a combination of parametric and regular curves.
 • The second argument r is required for the first calling sequence only. It is not used for curves in parametric form. If F is a procedure or list/set of procedures, then r must be a range. Otherwise, r must have the form name=range where the left hand side is the variable name appearing in F.
 • the numpoints option sets the minimum number of points used in generating the curve for the final frame. This setting starts at a low number and increases gradually from the first frame to the last.
 • The paraminfo option shows the value of the parameter in the title. It works the same way as the paraminfo option in plots:-animate. However, it can take additionally a name or string to be used instead of the automatically generated name in the title.
 • Additional options, such as color or view, may be provided. Any of the options described in the plot/options help page that are applicable to curves may be used. Options accepted by the plots:-animate command, such as the frames option for specifying the number of animation frames, may also be given to the animatecurve command.

Examples

Note: To animate the plots below, right-click (Control-click for Macintosh) a plot object, select Animation, and then select Play.

 > $\mathrm{with}\left(\mathrm{plots}\right):$
 > $\mathrm{animatecurve}\left(\mathrm{sin}\left(x\right),x=-\mathrm{\pi }..\mathrm{\pi }\right)$ > $\mathrm{animatecurve}\left(x↦\mathrm{sin}\left(x\right),-\mathrm{\pi }..\mathrm{\pi },\mathrm{color}="Niagara Blue",\mathrm{paraminfo}=x\right)$ > $\mathrm{animatecurve}\left(\left[\mathrm{sin}\left(x\right),x,x=-4..4\right],\mathrm{frames}=100,\mathrm{paraminfo}=\mathrm{false}\right)$ > $\mathrm{animatecurve}\left(\mathrm{sin}\left(5x\right),x=-3..3,\mathrm{view}=0..1\right)$ > $\mathrm{animatecurve}\left(\left[\mathrm{sin}\left(t\right),\mathrm{cos}\left(t\right),t=-\mathrm{\pi }..\mathrm{\pi }\right],\mathrm{view}=\left[-2..2,-2..2\right]\right)$ > $\mathrm{animatecurve}\left(\left\{x-{x}^{3},\mathrm{sin}\left(x\right)\right\},x=0..\frac{\mathrm{\pi }}{2}\right)$ 