ContourPlot.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 third plot 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 third plot 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 ContourPlot plot;
plot = ContourPlot.Create( "Pyramid", x, y, z, false );
plot.AddLevels( 2, 0, 3, false );
plot.FillContours( false );
plot.ShowWindow();
See Also

ContourPlot.RemoveLevels