Plot2D.SetAxisViewRange

Prototypes

void SetAxisViewRange( int nAxisID, double dMin, double dMax )

Parameters

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

double dMin
The minimum value to display on the specified axis.

double dMax
The maximum value to display on the specified axis.

Remarks

This method sets the minimum and maximum values for an axis.

Example
x = { 1 2 3 4 5 6 7 8 };
y = { 2 1 4 5 6 5 6 9 };
declare ScatterPlot plot = ScatterPlot.Create( "Sample Data", x, y );
plot.SetAxisViewRange( XAXIS, 0, 16 );
See Also

Plot2D.GetAxisViewRange