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#
// 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#
The y-axis minor grid must turned on using
plotSetYGridPen()
orplotSetGridPen()
for the minor axis to show.Note
This function sets an attribute in a
plotControl
structure. It does not affect an existing graph, or a new graph drawn using the default settings that are accessible from the menu.See also
Functions
plotSetActiveY()
,plotSetYGridPen()
,plotSetYMinorGridPen()
,plotSetXMinorTicCount()