cannot determine plotting variable - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Error Message Guide : cannot determine plotting variable

Error, (in plot) cannot determine plotting variable

 

Description

Examples

Description

This error occurs when the plot command does not have enough information to determine the independent variable to be plotted.

You may have tried to plot two functions but they are functions of different variables, or you may have left some unknown variable in your plotting expressions besides the plotting variable.

Examples

Example 1

In this example, we want to plot two functions on the same graph.  However, the first is a function of t and the second is a function of x.

plotsint,x16x3

t

x

Error, (in plot) cannot determine plotting variable

Solution

To fix the problem, use the same variable in both functions.  (It can be x or t.)

plotsinx,x16x3

 

Example 2

g1x220 x40: g1x210 x40:

plotg1,g2

Error, (in plot) cannot determine plotting variable

Solution

The functions g2 has not been defined.  (Note the typo in the first line, where g1 is assigned twice.) To fix, change the second g1 to g2.

g1x220 x4: g2x210 x40:

plotg1,g2

 

See Also

plot

plot3d

Multiple Plots

Using the Exploration Assistant

How Do I Enter a Simple Expression?