get data from a plot structure
a PLOT, PLOT3D or _PLOTARRAY structure
(optional) the element option as described below
element : "curve", "grid", "mesh", "points", "polygon", "all" (default), or a list containing any of these
includecolor : boolean indicating that color information should be returned; default is false.
rangesonly : boolean indicating that only a list of ranges for the entire plot should be returned; default is false.
The getdata command retrieves data from a plot structure and returns it in the form of a Matrix or an Array, along with the ranges of the data.
For each element in a single 2-D or 3-D plot (such as a curve or a polygon), a list is returned. Each list contains a string to identify the type of element, a list of d ranges, where d is the plot dimension, and the data itself.
If p is a _PLOTARRAY structure, then a Matrix is returned. The (i, j)-th element of this Matrix contains the data corresponding to the (i, j)-th plot in the plot array. Note that when the the plot array consists of a single row or column, a Matrix is still returned, with one of its dimensions equal to 1.
For curves, points and polygons, the data is returned as an n by d Matrix, in which each row consists of the coordinates for one of the n points defining the element. For a grid, the data is returned as an m by n Matrix, containing the z values corresponding to an m by n grid of points evenly spaced over the x-y region defined by the ranges. For a mesh, the data is returned as a 3-dimensional m by n by 3 Array A, where A[i,j] gives the 3 coordinate values of the (i,j)-th point on the m by n mesh.
The element=t option allows you to restrict the returned results to the type of plot elements specified in the value t.
If the rangesonly option is set to true, then only a list of ranges for the entire plot is returned.
If the includecolor option is set to true, then color information is returned in the form of a list. The first entry of the list is a string indicating the color space, and the second is an Array containing the color data as described on the plot/structure help page. Note that local color information associated with a single plot element is returned with the other data for that element, inside the same sublist. Global color information that applies to the entire plot is returned as an additional item in the sequence of return values. If there is no color information associated with a plot element or with the entire plot, then an empty list appears where the color information would normally be found.
Note that, for 2-D density plots generated from the plots:-densityplot command, getdata returns the information for the associated grid or mesh structure, but the data of interest resides in the color rtable obtained via the includecolor option.
The getdata command does not work with animations, and it does not return data for text or isosurface elements.
curve,0...1.57079632364999999,0...1.,0.0.0.008258626644671100.008258532765171170.01544441352956270.01544379954445910.02352558241961280.02352341242885810.03166031854274440.03165502955179830.03975639168506780.03974591954819420.04726248785750170.04724489444924080.05503461567399870.05500683832511430.06307256137996370.06303075103324300.07108472929210920.0710248787669898⋮⋮200 × 2 Matrix,RGB,0.4705882400000000.0.0549019610000000,polygon,0...1.,0...1.,0.0.0.1.0.5000000000000000.5000000000000001.1.1.0.,RGB,0.0.1.,
curve,0...1.57079632364999999,0...1.,0.0.0.008258626644671100.008258532765171170.01544441352956270.01544379954445910.02352558241961280.02352341242885810.03166031854274440.03165502955179830.03975639168506780.03974591954819420.04726248785750170.04724489444924080.05503461567399870.05500683832511430.06307256137996370.06303075103324300.07108472929210920.0710248787669898⋮⋮200 × 2 Matrix
The plottools[getdata] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
The plottools[getdata] command was updated in Maple 18.
The includecolor option was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
Download Help Document
What kind of issue would you like to report? (Optional)