Sets the plot type for a table of data.
Optional. A multi-column series. Defaults to the current Window.
An integer, the plot type:
sets the graph in Window 3 to be a contour map.
W1: spline2(rand(10), 5);setplottype(4)
creates and displays a spline interpolated Z surface.
creates a stripchart with two traces.
Use SETPLOTTYPE, the menus, the Graphical Styles toolbar button, or the [F7] key to see different styles of a particular plot type. For example, a waterfall plot could be viewed as a surface, line, or point plot; a 3-D bar graph; or a table of values.
If the plot type of a Window has not been set, the series will be displayed in the type of the series. If the Window type has been set, the series will be displayed in the type of the Window. For example:
W1: spline2(rand(10), 3);setplottype(5)
a = spline2(rand(10), 3);setplottype(a, 2)
The plot type of W1 is set to image and all (multiple column) series placed in W1 will be displayed as an image. The variable a plots as an image in W1 even though the plot type was set to contour. However, because the plot type of W2 was not previously set, the series plots as a contour map.
Use CLEAR to remove the Window plot type.
The series is now displayed as a contour map.
Density, type 3, and image, type 5 are normally identical. A density plot maps each value of a multi-column series to a color. The result is normally converted into an image for display speed.
See SETPLOTSTYLE to set the plotting style for a single column series.