plotSetYMinorTicCount

Purpose

Controls the number of minor ticks to place between major ticks on the y-axis of a 2-D plot.

Format

plotSetYMinorTicCount(&myPlot, num_tics)
Parameters:
  • &myPlot (struct pointer) – A plotControl structure pointer.

  • num_tics (Scalar) – the number of minor ticks to place between major ticks on the y-axis.

Examples

_images/plotsetyminorticcount-cr.png
// Declare plotControl structure
struct plotControl myPlot;

// Initialize plotControl structure
myPlot = plotGetDefaults("scatter");

// Set x-axis major and minor grid lines on
plotSetYGrid(&myPlot, "both");

// Set y-axis minor grid lines tick count
plotSetYMinorTicCount(&myPlot, 4);

// Create a scatter plot of random data
plotScatter(myPlot, seqa(1, 1, 10 ), rndn(10, 1));

Remarks