Plot.SetAxisTicks

Prototypes

void SetAxisTicks( int nAxisID, Matrix mTickValues, Matrix mTickLabels )

Parameters

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

Matrix mTickValues
A vector containing the numbers where you want to place major tick marks.

Matrix mTickLabels
A vector containing the strings to use as labels for the major tick marks. The dimension of this vector must be the same as the dimension of mTickValues.

Remarks

This method enables you to specify explicit values and labels to use for major tick marks.

It is recommended that you not use this method with the Histogram class. Instead, use either Histogram.ReBin or Plot.SetAxisNumericTicks.

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.SetAxisTicks( XAXIS, {2, 5, 8}, {'Small', 'Med', 'Large'} );
See Also

Plot.SetAxisMinorTicks
Plot.SetAxisNumericTicks