PLOT structure found - use plots[display] - 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 : PLOT structure found - use plots[display]

Error, (in plot) PLOT structure found -- use plots[display]

Error, (in plot3d) PLOT3D structure found -- use plots[display]

Error, (in ...) ... structure found -- use plots[display]

 

Description

Examples

Description

These errors occur when a PLOT or PLOT3D data structure is given as an argument to plot, plot3d, or another plotting command.

 

PLOT and PLOT3D are low-level data structures that contain information about the various components of a plot (for example, points, lines, and plotting options). These data structures are produced by Maple plotting commands such as plot and plot3d, but they are not valid input parameters for these commands. Instead, use the plots[display] command, which can interpret these data structures and produce your plot.

 

Multiple plots can be drawn together by passing a set or list of PLOT or PLOT3D data structures to plots[display] (see the examples on this page).   

Examples

Example 1: Generating two-dimensional plots
In this example, y1 and y2 are PLOT data structures. When either of these is passed as an argument to the plot command, an error is generated because plot does not accept PLOT data structures.

 

y1plotcosx,style=line

y2PLOTCURVES0,1,0,1,3,0,0,1,COLORRGB,0,0,1

ploty1,x=1..1

Error, (in plot) PLOT structure found -- use plots[display]

ploty2

Error, (in plot) PLOT structure found -- use plots[display]

 

Solution:

Use the plots[display] function to generate the images for these plots.

 

withplots:

displayy1

displayy2

The plots[display] function can display more than one plot. To do this, use a list or set of PLOT data structures.

displayy1,y2

 

Example 2: Generating three-dimensional plots

As in the example above, an error is generated when a PLOT3D structure is given as an argument to plot3d.

 

Aplot3dsinxy,x=Pi..Pi,y=Pi..Pi

plot3dA

Error, (in plot3d) PLOT3D structure found -- use plots[display]

Hplot3dxy,x=2..2,y=2..2

plot3dH

Error, (in plot3d) PLOT3D structure found -- use plots[display]

 

Solution:

Use the plots[display] function to display these three-dimensional plots.

 

displayA

displayH

displayA,H

See Also

list

plot

PLOT

plot3d

PLOT3D

plots[display]

set