ContourPlot.Create

Prototypes

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

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

Return Value

The return value is a reference to the newly created ContourPlot 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. The datum mZ[i] is assumed to be a function of the ordered pair (mX[i], mY[i]). These vectors are used to create a DataObject and then that DataObject is used to create a ContourPlot.

Remarks

This method creates a contour plot showing estimated contours of the third (Z) variable as a function of the first two 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 };
ContourPlot.Create( "Pyramid", x, y, z );
See Also

DataObject
RotatingPlot.Create