DADiSP Worksheet Functions > Function Categories > Display and Manipulation > GETPLOTTYPE

 

GETPLOTTYPE

Purpose:

Returns the plot type for a table of data.

Syntax:

GETPLOTTYPE(series, index)

series

-

Optional. A series. Defaults to the current Window.

index

-

Optional. An integer. Index of series. Defaults to 1.

Returns:

An integer. The possible return values are as follows:

0:

Series (line) plots

1:

Waterfall plot

2:

Contour map

3:

Density (image) plot

4:

Z Surface (3D plot)

5:

Image plot

6:

Chart (multiple line plots)

7:

Stripchart plot

Example:

W1: contour(spline2(rand(10), 5))

getplottype(W1)

 

returns 2, a contour map.

 

a = spline2(rand(12), 4);setplottype(a, 5)

getplottype(a)

 

returns 5, an image plot

Remarks:

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.

See Also:

CONTOUR

DENSITY

GETPLOTSTYLE

PLOT3D

SETPLOTSTYLE

SETPLOTTYPE

TABLEVIEW

WATERFALL