Plot.SetAxisTickRange

Prototypes

void SetAxisTickRange( int nAxisID, double dTickMin, double dTickMax )

Parameters

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

double dTickMin, dTickMax
The tick range. No ticks are drawn outside this range.

Remarks

This method sets the tick range for a numeric interval axis.

If the tick anchor is not in the closed interval [dTickMin, dTickMax], multiples of the tick increment (tick unit) are added to the anchor until it falls into that range. If that attempt fails, the tick anchor is set to dTickMin.

For the Histogram class, the interval [dTickMin, dTickMax] must be wide enough so the resulting bins encompass all the data. For example, suppose you make a histogram of a variable that has values in the range [31, 238]. If the anchor tick is 100 and the tick increment is 30, dTickMin must be less than or equal to 10 and dTickMax must be greater than or equal to 250.

Example
declare DataObject dobj;
dobj = DataObject.CreateFromFile( "baseball" );
declare ScatterPlot plot;
plot = ScatterPlot.Create( dobj, "NO_HITS", "NO_RUNS" );
plot.SetAxisTickRange( XAXIS, 0, 200 );
See Also

Plot.SetAxisNumericTicks
Plot.SetAxisTickAnchor
Plot.SetAxisTickUnit