To plot a space curve in Maple, define the curve as a list of three expressions in a single parameter — for example [cos(t), sin(t), t] — and pass it to spacecurve from the plots package, supplying a parameter range such as t = 0 .. 4*Pi. That one call produces a three-dimensional parametric plot you can rotate, style, and export. Everything else in this guide builds on that pattern: the syntax details that trip people up, the options that control appearance, and the fixes for the cases where the plot comes out empty, clipped, or misleading.

Maple's plotting commands have been stable across recent releases (Maple 2023 through Maple 2025 behave the same for the material below), so the instructions here don't depend on a specific version number. What does change between versions is mostly the interface around the plot window, not the command syntax.

What you need before the first plot

Three prerequisites keep the first attempt from failing:

1: A Maple session with the plots package loaded. Run with(plots): once per session. If you skip it, spacecurve is unrecognized and Maple returns the call unevaluated rather than plotting. 2: A parametrization with exactly three components. A space curve needs x, y, and z as functions of one parameter. Two components describe a planar curve; four are not a curve Maple's 3D plotter accepts. 3: A finite parameter range. Every plotting command needs explicit bounds like t = 0 .. 2*Pi. An unbounded range is a common cause of an empty or error-producing plot.

If you have those, the command itself is short. The rest of this article is about getting it right and making it readable.

The core command, line by line

The minimal working example is a helix:

Read it in three parts. The bracketed list [cos(t), sin(t), t] is the curve: x = cos(t), y = sin(t), z = t. The range t = 0 .. 4*Pi tells Maple how far to run the parameter. The command name comes from the plots package and always expects a list (or a list of lists, covered below).

Two syntax habits prevent most beginner errors. First, use square brackets for the curve, not parentheses — spacecurve((cos(t), sin(t), t), ...) is not valid Maple syntax for a point list. Second, the range uses two dots (..), not a comma or a colon. A colon at the end of the line suppresses output; a semicolon displays the plot. If you run the command and see only the echoed command, check that with(plots): actually executed and that you ended the line with ;.

A useful sanity check: after defining the list, evaluate it at one parameter value, such as eval([cos(t), sin(t), t], t = 0), which should return [1, 0, 0]. If that works, the curve expression is sound and any plotting problem lies in the command or its options.

Choosing and checking your parametrization

The quality of a space curve plot depends mostly on the parametrization you feed it. Three practical considerations:

Domain coverage. Plot exactly the interval that shows the feature you care about. A helix over t = 0 .. 4Pi shows two full turns; over t = 0 .. 40Pi the turns compress into a dense band where individual loops are hard to see. If a curve has a natural period, match the range to it or a small multiple.

Avoiding singular points. Curves with terms like 1/t or tan(t) blow up inside certain ranges. Plotting across a pole produces a wild excursion that dominates the view and hides the rest of the curve. Restrict the range to sit strictly between poles, or plot separate segments (see the multi-curve section below) rather than one range that spans the singularity.

Parameter speed versus shape. The plotted shape is geometric, but sampling density follows the parameter. A curve whose parameter moves quickly through a region of interest — an ellipse traced as [2*cos(t), sin(t), 0], for instance — gets fewer sample points where the curve bends sharply, which can make it look faceted. Maple adapts its sampling, but extremely sharp features may still need a narrower range or a numpoints increase.

As a check, confirm a few known points. For the twisted cubic [t, t^2, t^3], at t = 1 the curve should pass through (1, 1, 1); if the plot's displayed box doesn't seem to contain that point, your view or range is off, not the curve.

Making the plot readable: the options that matter

Default plots are functional but plain. These options carry most of the visual work, and they're passed after the range:

Option What it does Typical value
thickness Line width in points 3
color Line color red, "#3366CC"
numpoints Minimum sample points along the curve 200
scaling Whether axes share a scale constrained
axes Axis style boxed, normal, none
labels Axis labels [x, y, z]
view Explicit coordinate box [-2 .. 2, -2 .. 2, -3 .. 3]

A styled helix looks like this:

scaling = constrained is the option people most often forget and most often need. By default, Maple fits the plot into a roughly cubic display box, so a curve that's long and thin in real coordinates — a helix with a tall pitch, say — gets visually stretched or squashed. Constrained scaling makes one unit along x look the same length as one unit along y and z, which is essential when the geometry matters, such as judging whether a helix's pitch is larger than its diameter. The trade-off is that a curve extending far in one direction produces a very elongated box; in that case an explicit view can reframe the interesting region.

numpoints sets a floor on sampling, not a cap; Maple's adaptive plotter adds points where curvature is high. Raising it to a few hundred helps smooth sharp bends but slows rendering on heavy curves. For most textbook curves the default is fine.

Plotting more than one curve and combining with surfaces

spacecurve accepts a list of curves, each a list of three expressions, and plots them together:

The color option then takes a list matching the curves. This is the clean way to show two strands of a double helix, a curve and its reflection, or separate segments of a curve split around a singularity — plot t = 0 .. 1 and t = 2 .. 3 as two entries in the outer list.

To place a curve inside a surface, build each plot separately and combine with display:

Using colons after the assignments suppresses their individual output so only the combined display call renders. The display command is where mixed 2D-and-3D issues surface: combining a spacecurve with a plot (a 2D command) generally fails or misbehaves, because they live in different plot structures. Keep 3D curves with 3D surfaces and points.

Rotation, viewpoint, and export

Once a plot renders, the plot window's toolbar lets you drag to rotate and scroll to zoom. For reproducible figures in assignments or papers, set the viewpoint in the command with orientation = [theta, phi], where theta is the azimuth in degrees and phi the elevation above the horizontal plane. orientation = [45, 60] gives a standard three-quarter view; orientation = [0, 90] looks straight down the z-axis.

For export, right-click the plot and choose Export, or use the plotsetup command to redirect output to a file format such as PNG or EPS before calling the plotting command. If you set plotsetup for a file, remember to reset it with plotsetup(default) afterward, or subsequent plots will keep going to the file instead of the screen.

One interaction worth knowing: animated views of a curve being traced are possible by making the parameter range depend on an animation variable, but that's an animate construction rather than a spacecurve option, and it's better treated as a separate topic once static plots are working.

When the plot fails: symptoms and fixes

Troubleshooting goes faster if you match the symptom to the cause:

The command echoes back unevaluated. spacecurve isn't loaded, or the arguments are malformed. Run with(plots): and check the list-and-range structure.

The plot area is empty. Usually the range is unbounded, the expressions contain an unresolved symbol other than the parameter, or the curve lies entirely outside the automatic view. Test one parameter value with eval to confirm the expressions produce numbers.

The curve is clipped or a straight spike appears. A pole sits inside the range, or the automatic view is too tight. Narrow the range away from the singularity, or set view explicitly to the region you want.

The curve looks distorted or flattened. Default scaling is stretching the box. Add scaling = constrained, and if the resulting box is awkwardly long, pair it with a view that frames the interesting portion.

Rendering is slow or the window freezes. Very high numpoints combined with a wide range and a complicated expression overloads the plotter. Reduce the range first, then numpoints.

A reasonable stop condition: if the expression is correct at sampled parameter values, the range is finite, and the plot still errors with a message you don't recognize, copy the error text and check Maple's help page for plot3d,options and spacecurve, which document the accepted option names for your version. Option names that were valid in older releases occasionally differ; the help page is authoritative for the version installed.

A worked example from start to check

Putting the steps together for the curve r(t) = (t, t², t³) on the interval −2 ≤ t ≤ 2:

1: Load the package: with(plots): 2: Confirm the parametrization evaluates: eval([t, t^2, t^3], t = 1) should return [1, 1, 1]. 3: Write the plot call with styling and constrained scaling: 4: Rotate the result to confirm the curve sweeps from (−2, 4, −8) through the origin to (2, 4, 8), rising steeply at both ends — the signature of a cubic. 5: Check success by verifying the endpoints: the plotted curve should visibly terminate at those two coordinate triples, and the section near the origin should look nearly straight, since the cubic term dominates only for larger |t|.

That endpoint check is the practical test for any space curve plot: identify two or three parameter values with known coordinates, and confirm the rendered curve passes through them in the displayed axes.

FAQ

Can I plot a space curve defined implicitly, without a parametrization? Not directly with spacecurve. It expects explicit expressions in one parameter. An implicit intersection of two surfaces is better approached by solving for a parametrization first, or by plotting both surfaces with intersectplot from the plots package, which handles surface-surface intersections.

How do I add points or vectors along the curve? Build the points with pointplot3d (from plots) and the arrows with arrow (from the plottools package or plots), then combine everything with display. Each element keeps its own options, so you can color markers differently from the curve.

Why does my curve look like a polygon rather than a smooth line? Either the sampling density is too low for the curvature, or the plot window is displaying at low resolution. Raise numpoints and check whether scaling = constrained is distorting the apparent smoothness at the view's edges.

Does the coordinate system have to be Cartesian? spacecurve plots in Cartesian coordinates. Curves given in cylindrical or spherical coordinates should be converted to Cartesian expressions before plotting — for example, a spiral of constant radius becomes [rcos(t), rsin(t), c*t] directly.