GraphType Property

Gets or sets how array data maps to the graph object.

Syntax

object.GraphType [= value]

Parameters

value
An enumerated graph type expression. Valid values are as described in the following table:

value Graph Type Description
1 Height Field For each data element in the region of interest, there is an (x,y,z) point. The x value is the data element's column index to x, its row index to y, and its data elements value to z. Depending on the current GraphStyle, these points may be displayed as individual points, or connected to form either lines or a surface.
2 Raster Image For each data element in the ROI, there is an (x,y) point. The x value is the data element's column index, the y value is its row index, and the color is based on the current color palette. The collection of points is drawn as a 2D image.
3 Vector Plot Specifies a graph of vector data, using only the first three columns of data in the array. Each row in the data array maps to a point of the graph, where the x-, y-, and z-coordinates of the point are, respectively, the values in the first three columns of that row of the data array.

Remarks

Not all GraphStyle values are valid for all GraphType values. For details, see the Remarks section of the GraphStyle description.

When GraphType is set to Vector Plot, the XComp, YComp, and ZComp properties identify the columns in the data array that are to be used for x, y, and z values, respectively.

The combination of the GraphType value and the AxisAutoScale value can determine which types of clamping can have an effect on how graphs display, as shown in the following table:

IF THEN
 
GraphType property AxisAutoScale property X and Y clamping can have an effect Z clamping can have an effect
Height Field TRUE No No
Height Field FALSE No Yes
Raster Image TRUE No No
Raster Image FALSE No No
Vector Plot TRUE No No
Vector Plot FALSE Yes Yes

There's no "Plane View" GraphType. To create an XY Plot, set the GraphType to Height Field and the CamViewType to ViewXZ.

See Also

GraphStyle, XComp, YComp, ZComp, CamViewType