| Contents > SharpPlot > Methods | Index |
SharpPlot.SetYTickMarks Method
Set Y tick marks given a tickmark specification.
Example
sp.SetYTickMarks(100); // Every 100
sp.SetYTickMarks(AE.Join(50,1)); // Major,minor
sp.SetYTickMarks(new int[] {0,10,20,50,100}); // Exact placement
Overloads
- public void SetYTickMarks(double majorInterval);
- public void SetYTickMarks(int[] tickPlacement);
- public void SetYTickMarks(double[] tickPlacement);
- public void SetYTickMarks(double majorInterval,int minorTickCount);
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:
- Time ticks are in hours (fractions of an hour are fine)
- Duration ticks are in data units, typically minutes or seconds
The same applies if you choose to give tickmarks exactly as an array.
