ContourPlot.SetGridResolution

Prototypes

void SetGridResolution( <int nNumXLines, int nNumYLines> )

Parameters

int nNumXLines, nNumYLines
See Remarks

Remarks

This method defines the computational grid used to approximate contour lines. The algorithm that computes the contours uses a grid superimposed on the xy-plane. This grid consists of (nNumXLines - 1) subdivisions along the X axis and (nNumYLines - 1) subdivisions along the Y axis. Generally, more subdivisions results in smoother contour lines whereas fewer subdivisions results in jagged contour lines. Calling this method without any parameters restores the default values for nNumXLines and nNumYLines.

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.SetGridResolution( 10, 10 );
plot.ShowWindow();