Plot.SetAxisTickAnchor

Prototypes

void SetAxisTickAnchor( int nAxisID, double dAnchor )

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 is applied.

Remarks

This method sets the anchor for the tick marks. The major tick marks are generated by starting at the anchor tick and stepping in both directions by the tick increment.

For the Histogram class, the tick anchor affects binning. If this method is called for the X axis of a histogram, the Y axis may also change.

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.SetAxisTickAnchor( YAXIS, 5 );
See Also

Plot.GetAxisTickAnchor
Plot.SetAxisNumericTicks
Plot.SetAxisTickRange
Plot.SetAxisTickUnit