SharpPlot.SetXTickMarks Method

Set X tick marks given a tickmark specification.

Example

sp.SetXTickMarks(10); // Every 10
sp.SetXTickMarks(20,4); // Major,minor
sp.SetXTickMarks(new int[] {10,20,50,100}); // Exact placement

Overloads

The units of the major tick interval are normally just the units of the data, but there are some special cases when plotting time-related values. Axis styles which affect this calculation are:

The same applies if you choose to give tickmarks exactly as an array, except that in the ‘monthly’ case you give the positions in days to match the OLE date values.

See also ...

SharpPlot Members