Syntax:
set mxtics {<freq> | default} unset mxtics show mxtics
The same syntax applies to mytics, mztics, mx2tics, my2tics, mrtics, mttics and mcbtics.
4#4freq5#5 is the number of sub-intervals (NOT the number of minor tics) between major tics (the default for a linear axis is either two or five depending on the major tics, so there are one or four minor tics between major tics). Selecting default will return the number of minor ticks to its default value.
If the axis is logarithmic, the number of sub-intervals will be set to a reasonable number by default (based upon the length of a decade). This will be overridden if 4#4freq5#5 is given. However the usual minor tics (2, 3, ..., 8, 9 between 1 and 10, for example) are obtained by setting 4#4freq5#5 to 10, even though there are but nine sub-intervals.
To set minor tics at arbitrary positions, use the ("4#4label5#5" 4#4pos5#5 4#4level5#5, ...) form of set {x3#3x23#3y3#3y23#3z}tics with 4#4label5#5 empty and 4#4level5#5 set to 1.
The set m{x3#3x23#3y3#3y23#3z}tics commands work only when there are uniformly spaced major tics. If all major tics were placed explicitly by set {x3#3x23#3y3#3y23#3z}tics, then minor tic commands are ignored. Implicit major tics and explicit minor tics can be combined using set {x3#3x23#3y3#3y23#3z}tics and set {x3#3x23#3y3#3y23#3z}tics add.
Examples:
set xtics 0, 5, 10 set xtics add (7.5) set mxtics 5Major tics at 0,5,7.5,10, minor tics at 1,2,3,4,6,7,8,9
set logscale y set ytics format "" set ytics 1e-6, 10, 1 set ytics add ("1" 1, ".1" 0.1, ".01" 0.01, "10^-3" 0.001, \ "10^-4" 0.0001) set mytics 10Major tics with special formatting, minor tics at log positions
By default, minor tics are off for linear axes and on for logarithmic axes. They inherit the settings for axis3#3border and {no}mirror specified for the major tics. Please see set xtics (p. ) for information about these.