RotatingPlot.Create

Prototypes

static RotatingPlot Create( DataObject dobj, String sXVarName, String sYVarName, String sZVarName <, boolean bShow> )

static RotatingPlot Create( String sDataName, Matrix mX, Matrix mY, Matrix mZ <, boolean bShow> )

Return Value

The return value is a reference to the newly created RotatingPlot object.

Parameters

DataObject dobj
The DataObject containing the variables you want to plot.

String sXVarName
The name of the variable you want to assign to the X axis.

String sYVarName
The name of the variable you want to assign to the Y axis.

String sZVarName
The name of the variable you want to assign to the Z axis.

boolean bShow
If bShow is true, the plot's window is displayed. If bShow is false, the plot's window is hidden. Calling this method without specifying bShow is equivalent to calling it with bShow equal to true.

String sDataName
The name to assign to the DataObject created internally by this method.

Matrix mX, mY, mZ
Vectors that contain the data you want to plot. These vectors are used to create a DataObject and then that DataObject is used to create a RotatingPlot.

Remarks

This method creates a three-dimensional scatter plot showing relationships in a set of observations containing three variables.

Example
x = { 0 10 10  0 1 9 9 1 2 8 8 2 3 7 7 3 4 6 6 4 5 };
y = { 0  0 10 10 1 1 9 9 2 2 8 8 3 3 7 7 4 4 6 6 5 };
z = { 0  0  0  0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 };
declare RotatingPlot plot;
plot = RotatingPlot.Create( "Pyramid", x, y, z, false );
plot.SetDrawingMode( SMOOTHCOLORMESH );
plot.ShowWindow();
See Also

DataObject