To plot with a parameter in Maple, make the parameter an explicit variable of the plot command inside an animate call (for motion), a plot3d/tubeplot surface (for a family), or a Explore slider (for interactive values); a bare plot(x^2 + a, x = -3 .. 3) fails because Maple never assigns a. The 2026 versions of Maple (Maple 2025 and later 2026 releases) keep the same core plotting engine, so the syntax below applies across them. All examples use only the standard library. The one condition that matters most: decide first whether you want motion, a static family of curves, or a live control, because each task takes a different command and a different set of options.
Throughout, remember that in Maple an unassigned name such as a is a symbol, not an empty slot. Plot commands evaluate their expressions before drawing, so a symbol with no value produces either an error or a plot with one literal value substituted from the last assignment. That single fact explains most confusion with parameterized plots.
Why a parameterized plot fails before it works
Maple evaluates the expression you hand to plot at the moment the command runs. If a was assigned earlier (say, by an a := 2 line), the plot silently uses 2 and looks fine but wrong. If a was never assigned, Maple tries to plot the expression containing the unbound symbol and either refuses or returns a single curve. A useful check is to type just a; at the prompt, or assigned('a'), before plotting. If it returns a number, unassign('a') restores the symbolic name. The second evaluation rule is subtler: when the plot command is inside a procedure or a proc, parameters are evaluated twice by default, so expressions can evaluate differently than they do at top level. Adding declare-style locals or quoted names fixes that.
Finally, watch the range variable. plot(x^2 + a, x = -3 .. 3) needs x to be a free name. If you previously set x := 1, the range collapses and the plot is meaningless. Maplet and worksheet sessions accumulate assignments, so a fresh worksheet or an unassign('x', 'a') line is a cheap first diagnostic.
Prerequisites and environment checks
Before running the recipes, confirm three things:
1: A working worksheet or document interface. The Explore command works in document and worksheet mode, but slider behavior differs in strict command-line (TTY) sessions, where only static plots appear. If you need sliders, use the Standard Worksheet interface. 2: No stray assignments. Run unassign('a', 'x', 't', 'y') in a scratch section, or start a new worksheet. 3: Plotting loaded. The plots package is loaded automatically for many commands, but calling with(plots) once at the top makes every command below unambiguous, including animate, display, tubeplot, and spacecurve.
With those in place, pick your workflow from the next three sections.
Path one: animate a curve as the parameter changes
animate is the most direct answer to "plot with a parameter" when you want to see the curve evolve. It takes the expression, the plot range, and then the parameter with its own range.
The first argument is the plotting command itself, the second is its argument list (a list, so the whole expression is passed rather than evaluated immediately), and the third is the parameter range. frames = 40 sets the number of intermediate values, and fps controls playback speed in frames per second. The result is an animation object (an ANIMATE plot structure) that plays in the worksheet with a control bar; you can right-click to export frames or save as GIF.
Three practical refinements matter here. First, pin the view so the animation doesn't jump: add view = [-3 .. 3, -2 .. 2] or view = -10 .. 10 and the axes stay fixed while the curve moves. Second, for 3-D motion use animate(plot3d, ...) or animate(spacecurve, ...) with a second range variable. Third, animate also accepts a parameter that is a whole function, for example animate(plot, [f(x, a), x = -3 .. 3], a = ...) after defining f := (x, a) -> x^2 + a, which keeps the expression readable.
A worked arithmetic check: a running from -2 to 2 in 40 frames changes by 4/39 per frame, so the curve shifts vertically by the same amount each frame. If a jump looks coarse, raise frames; if playback is sluggish, lower it. The animation stores each frame, so memory grows with frame count and grid size; animate with 400 frames of a plot3d at a fine grid can be surprisingly heavy.
Path two: show a family of curves in one static plot
A "family of curves" plot is the figure you find in textbooks: twelve curves, each a different value of the parameter, all drawn at once. There are three ways to build it, and they differ in how much control you get.
Using plot with a set of expressions
The simplest route is to construct a set or list of expressions, one per parameter value, and plot them together:
seq produces the expressions in order; the square brackets make it a list that plot treats as multiple curves. color = [red, blue, green] cycles through your colors, but if you supply fewer colors than curves, Maple repeats or blends them, so pair the color list with the number of curves or use color = [seq(COLOR(HUE, i/10), i = 1 .. 10)]. For a quick visual cue, legend = [seq(a = -2 + 0.5*i, i = 0 .. 8)] labels each curve with its parameter value.
Using plot3d with a parameter axis
Drawing z = f(x, a) as a 3-D surface over the x and a axes shows the whole family in one object and reads naturally from the side:
With orientation = [0, 90, 0] the a axis recedes and you see the familiar stack of parabolas. Rotate interactively to read parameter values off the axis, or add style = surface and a color scheme such as color = a to shade by the parameter. This is the cleanest single figure when the audience knows how to read a surface, and it avoids cluttering a 2-D plot with a dozen colored enemies.
Using tubeplot or spacecurve for trajectories
When the parameter is time and the curve is a path, tubeplot gives the path thickness so the parameter reads as progression. A spiral with parameter t over a fixed range, plus a tubeplot radius, is one call; vary a second parameter inside the expression and animate it instead of drawing a family.
Path three: drive the parameter with sliders and other controls
Explore attaches interactive controls to any plot and is the fastest way to a "parameter dashboard" in a worksheet:
The parameters option takes a list of names with ranges; Explore builds a slider for each one and regenerates the plot as the slider moves. Add initialvalues = [a = 0], placement = right, and numframes or showlabels as needed. For discrete parameters, list explicit values (a = [0, 1, 2, 3]) and you get a combo box; for a checkbox, use a range of true .. false. Explore also works with plot3d, animate, and even non-plot outputs, which makes it the workhorse for classroom demos.
The older Interactive and Maplet interfaces still exist, and plots:-interactive can be scripted, but Explore is the current default and the one to learn. A caution: Explore evaluates the plot expression repeatedly, so if the expression is expensive (a numerical integration, say), sliders will lag. Precompute a table of values and plot the interpolated result, or set numframes low.
Choosing among the three
Animate wins when the story is motion and change: a phase shift, a growing amplitude, a rotating frame. A static family wins for publication, where nothing moves and readers compare curves. Explore wins for teaching and exploration, where you might not know the interesting parameter range yet. The same expression can drive all three, so start with the one whose output you need and reuse the expression.
What to expect and how to verify success
For animation, success is a playing control bar and a curve that visibly changes shape or position without the axes rescaling. If the animation plays but the curve looks static, the parameter probably isn't in the expression after evaluation, or the parameter range has zero width. Check by setting frames = 2; with two frames you should see two different curves.
For a static family, success is the expected number of curves with distinguishable colors or legends. Common failure modes: a set collapses duplicate expressions (so a = 0 and a = 0.0 may merge), the legend order doesn't match the color order, and view clips curves unexpectedly. Count your seq output first, then plot.
For Explore, success is a responsive slider that changes the plot within about a second. If the slider moves and nothing changes, the parameter isn't actually used in the plot expression. If the plot flickers or lags, the expression is too expensive or the frames setting is too high; lower numframes and simplify the plot options.
Common failure modes and their fixes
The curve doesn't move in an animation. The parameter is being evaluated away. Wrap the expression or the plotting command in unevaluation quotes ('plot'(...)) or pass the plot command as the first argument to animate rather than evaluating its output first.
All curves come out the same color. The color list ran out. Give color a list at least as long as the number of curves, or use a procedural color (color = proc... ) that maps value to hue.
Slider moves but the plot doesn't update. The parameter name collides with a global assignment. Use unassign('a') or rename to a1. This is the single most common cause.
Maple refuses the plot with an error about a missing range. The plotting variable was previously assigned. Run unassign('x') and retry.
The Explore plot is blank on first open. The default parameter value puts the expression outside the view or causes a domain error (log of a negative, division by zero). Set initialvalues to a safe value and add view explicitly.
Animation export is slow or huge. Frames at fine grid resolution multiply file size. Reduce frames, lower numpoints or the plot3d grid, and export to a compressed format.
A sensible stop condition: if the parameterization requires more than a handful of Evaluate calls or local variables to explain, the plot probably wants a different structure — a static family instead of an animation, or vice versa. Rework the design before fighting the plotting command.
Method comparison at a glance
| Task | Command | Key option | Output | Best for |
|---|---|---|---|---|
| Moving curve | animate(plot, [...], a = r) | frames, view | ANIMATE object | Change over time |
| Family of 2-D curves | plot([seq(...)]) or plot3d over x and a | color, legend, orientation | static plot | Publications, comparisons |
| Slider dashboard | Explore(plot(...), parameters = [...]) | initialvalues, numframes | live interface | Teaching, exploration |
| Path with parameter | tubeplot / spacecurve | radius, numpoints | 3-D tube | Trajectories |
Read the table as equivalent task output, not equivalent visual design: the same expression, same range, and same view should produce the same curve shape across all four rows. If they don't, check that the parameter range and the view are identical.
A worked estimate: how many frames are enough?
Suppose a curve oscillates once as the parameter goes from 0 to 1, and you want the animation to look smooth. A rough rule is 20–30 frames per oscillation. Below about 12 frames the eye sees jumps; above about 50 frames, extra frames cost memory with little gain. So one oscillation wants roughly 24 frames, and a five-oscillation sweep wants about 120. For plot3d surfaces, halve the count because each frame is heavier. These are rules of thumb, not Maple limits; frames can be any positive integer, but above a few hundred the animation becomes unwieldy to store and play.
Where the parameter should live: expression versus plot command
There's a design choice that determines how flexible the plot is. Put the parameter in the expression (x^2 + a) and the plot command handles any value of a. Put the parameter in the plotting options (view = -10 -- a) and the parameter changes the framing rather than the curve. Mixing both is possible but confusing; pick one role per parameter. For a phase offset, the parameter belongs inside the sine or cosine; for a growing window, it belongs in view. This distinction also affects animation: parameters in the expression animate the curve, while parameters in view animate the axes, which usually is not what you want.
Region, version, and interface notes
Maple's plotting syntax has been stable for many releases, but a few details vary. In the Standard Worksheet interface, animations and sliders run inline; in the Command-Line (TTY) interface, animate returns an object that plays only in the GUI, and plot output is a static structure you must export or view elsewhere. Maple 2024 and later keep Explore as the recommended interactive tool; older Maplet code still runs but is legacy. Syntax such as the arrow operator and seq ranges applies everywhere. There is no separate "20xx plotting mode" option that changes these commands.
Units, domains, and assumptions
Maple doesn't attach physical units to plot expressions by default. If the parameter carries units (seconds, meters), either convert to SI before plotting and label the axis with labels = ["x (m)", "y (m)"], or use the Units package and divide out the unit so the plot argument is dimensionless. Plotting a dimensional expression without conversion produces axes in whatever base units you used, which invites comparison errors. Likewise, if the parameter appears inside a sqrt or log, the plot will show gaps where the argument is complex; setting view and discont options won't fill them, so state the valid parameter range instead. For numerical parameters used in evalf, keep Digits consistent across runs, or curves will differ in the last digits in ways that look like parameter dependence.
Publishable output beyond the worksheet
To move a parameterized plot into a paper or slide deck, export the animation as a GIF or a sequence of frames, and export the static family as a vector format so labels stay crisp. Set axes = boxed, labels, and a font size before export, because resizing afterward blurs text. For a slider demo, capture a few key frames at chosen parameter values instead of trying to embed interactivity that the destination won't support. The plot structure returned by animate can also be postprocessed with display to overlay annotations, but keep that final display under the same view so nothing shifts.
If you're stuck, the reliable diagnostic loop is: confirm the parameter name is unassigned, confirm it appears in the plotted expression, confirm the range is nonzero, then confirm the view includes the curve at both ends of the range. Those four checks resolve nearly every parameterized plot problem before it starts.