|
Calling Sequence
|
|
surfdata(f, opts)
surfdata(g, r1, r2, opts)
|
|
Parameters
|
|
f
|
-
|
three-dimensional Array or list of lists of points
|
g
|
-
|
(optional) two-dimensional Array or list of lists of values
|
r1, r2
|
-
|
(optional) ranges
|
opts
|
-
|
(optional) plotting options
|
|
|
|
|
Options
|
|
Dimension of returned plot, 2 or 3, usually defaulting to 3.
Controls the display of a color bar next to plots with custom colorschemes. The value can be true, false, or a list of options as described in plot/colorbar.
Name of an image file or image Array created through the ImageTools package.
|
|
Description
|
|
•
|
The surfdata command plots a surface from a collection of data points.
|
•
|
In the first calling sequence, f must be a list of list of points, where each point is itself a list of the form , or it must be an by by 3 Array of datatype float[8], where , , and represent the , , and values at grid point , for and . These forms correspond to those used in the MESH plot structure, as described in plot/structure.
|
•
|
In the second calling sequence, g must be a list of lists of values, . In this case, the x-values and y-values are assumed to correspond to those of a uniform grid over the region defined by ranges r1 and r2, and is the function value at grid point . Alternatively, g may be an by Array of datatype float[8]. These forms correspond to those used in the GRID plot structure, as described in plot/structure. If g is not provided, then a default Array (having values equal to 0 and using the default grid values) is assumed. If r1 or r2 is not provided, then the range 0..1 is assumed.
|
•
|
The remaining arguments are interpreted as options which are specified as equations of the form option = value. The options can be chosen from the list above or from those described on the plot3d/option help page.
|
•
|
If f or g is a set or list of surfaces, then the surfaces are plotted together. If a list of lists of lists is given as input to the second calling sequence, then the option must be specified to distinguish the input from the form allowed in the first calling sequence. The image option does not work with this form of the calling sequence.
|
•
|
If the dimension option is 3, then a 3-D surface is created. If it is 2, then the surface is projected onto a 2-D plot. This option is usually used when one wants to display the coloring of the surface rather than the heights. If no coloring exists, then a default coloring of the surface is applied. You can specify a different coloring with the colorscheme option.
|
|
The default for the dimension is normally 3. However, if the second calling sequence is used and parameter g is absent but option image is included, then the default is 2.
|
•
|
The image option allows you to use an image file or and image Array created through the ImageTools package. See the ImageTools:-Read help page for a description of the image files allowed. The image is then used for the coloring of the surface to be displayed. The default values for plot options are different when the image option is used; for example, the default dimension is 2 when neither f nor g is provided as a first argument.
|
|
|
Examples
|
|
The first calling sequence requires points containing x-, y-, and z- values.
>
|
|
>
|
|
>
|
|
You can assign colors to the surface using a color procedure.
>
|
|
>
|
|
>
|
|
The second calling sequence requires only z-values.
>
|
|
>
|
|
The colorscheme option can be used to color the surface by values. When a colorscheme is defined, you can also opt to show a colorbar.
>
|
|
The image option allows you to display an image as a plot.
>
|
|
|
|
Compatibility
|
|
•
|
The dimension and image options were introduced in Maple 18.
|
•
|
The plots[surfdata] command was updated in Maple 2024.
|
•
|
The colorbar option was introduced in Maple 2024.
|
|
|
|