Plot.SetAxisNumericTicks

Prototypes

void SetAxisNumericTicks( int nAxisID, double dAnchor, double dUnit, 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 dAnchor
The reference tick to which the major tick increment (dUnit) is applied.

double dUnit
The desired increment between major tick marks.

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

Remarks

This method reconfigures the major tick marks for a numeric interval axis.

The value of dAnchor must be in the closed interval [dTickMin, dTickMax].

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 Histogram hist;
hist = Histogram.Create( dobj, "NO_HITS" );
hist.SetAxisNumericTicks( XAXIS, 100, 30, 10, 250 );
See Also

Plot.SetAxisMinorTicks
Plot.SetAxisTicks
Plot.SetAxisTickAnchor
Plot.SetAxisTickRange
Plot.SetAxisTickUnit