Plot.DrawGrid

Prototypes

void DrawGrid( Matrix mX, Matrix mY )

void DrawGrid( double[] adX, double[] adY )

Parameters

Matrix mX
A numeric vector containing the horizontal coordinates of vertical lines. These coordinates are assumed to be in the current coordinate system.

Matrix mY
A numeric vector containing the vertical coordinates of horizontal lines. These coordinates are assumed to be in the current coordinate system.

double[] adX
An array containing the horizontal coordinates of vertical lines. These coordinates are assumed to be in the current coordinate system.

double[] adY
An array containing the vertical coordinates of horizontal lines. These coordinates are assumed to be in the current coordinate system.

Remarks

This method draws a set of vertical line segments at X=mX[1], mX[2], … mX[n] and a set of horizontal line segments at Y=mY[1], mY[2], … mY[m] where n is the number of elements in the vector mX and m is the number of elements in the vector mY (and similarly for the Java arrays). The grid lines are drawn using the current pen characteristics.

Example
x = { 1 2 3 4 5 6 7 8 };
y = { 2 1 4 5 6 5 6 9 };
declare ScatterPlot plot;
plot = ScatterPlot.Create( "Sample Data", x, y );
mX = { 2 4 6 8 };
mY = { 1 3 5 7 9 };
plot.DrawUseDataCoordinates();
plot.DrawGrid( mX, mY );