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
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).
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.
y1≔plotcosx,style=line
y2≔PLOTCURVES0,−1,0,1,3,0,0,−1,COLORRGB,0,0,1
ploty1,x=−1..1
ploty2
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.
A≔plot3dsinx⋅y,x=−Pi..Pi,y=−Pi..Pi
plot3dA
H≔plot3dx⋅y,x=−2..2,y=−2..2
plot3dH
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
Download Help Document