Plot2D.GetAxisViewRange

Prototypes

void GetAxisViewRange( int nAxisID, Matrix mMin, Matrix mMax )

Parameters

int nAxisID
A predefined constant specifying the axis. The valid values are XAXIS and YAXIS.

Matrix mMin, mMax
Upon return, contain the minimum and maximum values of the visible range of the axis.

Remarks

This method retrieves the visible range of the specified axis.

Because the Plot Area has margins, the visible range of an axis does not extend to the edges of the Plot Area.

Example
x = -5:5;
y = x##2;
declare ScatterPlot plot;
plot = ScatterPlot.Create( "Quadratic", x, y );
plot.GetAxisViewRange( XAXIS, xMin, xMax );
plot.GetAxisViewRange( YAXIS, yMin, yMax );
plot.DrawUseDataCoordinates();
plot.DrawRectangle( xMin, yMin, xMax, yMax );
See Also

Plot2D.SetAxisViewRange
Plot.GetPlotAreaMargins