SharpPlot Reference > SharpPlot Methods > SetYTickMarks Method

SharpPlot.SetYTickMarks Method

Set Y tick marks given a tickmark specification.

Example

sp.SetYTickMarks(100); // Every 100
sp.SetYTickMarks(50,1); // Major,minor
sp.SetYTickMarks(new int[] {0,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:

  • 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.

See also ...

SharpPlot Members | SharpPlot.YAxisStyle Property


Send comments on this topic
© Dyalog Ltd 2021