RotatingPlot.AddLevels

Prototypes

void AddLevels( int nNumLevels, double dMin, double dMax <, boolean bExtend> )

void AddLevels( Matrix mLevels <, boolean bExtend> )

Parameters

int nNumLevels
The number of contours to create between dMin and dMax.

double dMin, dMax
The values of the Z axis variable between which the contours should be created.

boolean bExtend
If bExtend is true, the new contours are added to the existing set of contours. If bExtend is false, all existing contours are removed before the new contours are added. Calling this method without specifying the bExtend parameter is equivalent to calling it with bExtend equal to true.

Matrix mLevels
A vector specifying values of the Z axis variable at which contour levels should be added.

Remarks

This method creates additional contours in the plot.

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 = RotatingPlot.Create( "Pyramid", x, y, z, false );
plot.Rotate( 3.14159/9, 1, 0, 1 );
plot.Rotate( 3*3.14159/4, 0, 1, 0 );
plot.SetDrawingMode( OPAQUEMESH );
plot.ShowContours();
plot.AddLevels( 2, 0, 5, false );
plot.ShowWindow();
See Also

RotatingPlot.RemoveLevels