next up previous contents index
Next: My2tics Up: Set-show Previous: Mx2tics   Contents   Index


Mxtics

Minor tic marks along the x axis are controlled by set mxtics. They can be turned off with unset mxtics. Similar commands control minor tics along the other axes.

Syntax:

     set mxtics {<freq> | default}
     unset mxtics
     show mxtics

The same syntax applies to mytics, mztics, mx2tics, my2tics and mcbtics.

5#5freq6#6 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 5#5freq6#6 is given. However the usual minor tics (2, 3, ..., 8, 9 between 1 and 10, for example) are obtained by setting 5#5freq6#6 to 10, even though there are but nine sub-intervals.

To set minor tics at arbitrary positions, use the ("5#5label6#6" 5#5pos6#6 5#5level6#6, ...) form of set {x4#4x24#4y4#4y24#4z}tics with 5#5label6#6 empty and 5#5level6#6 set to 1.

The set m{x4#4x24#4y4#4y24#4z}tics commands work only when there are uniformly spaced major tics. If all major tics were placed explicitly by set {x4#4x24#4y4#4y24#4z}tics, then minor tic commands are ignored. Implicit major tics and explicit minor tics can be combined using set {x4#4x24#4y4#4y24#4z}tics and set {x4#4x24#4y4#4y24#4z}tics add.

Examples:

     set xtics 0, 5, 10
     set xtics add (7.5)
     set mxtics 5

Major tics at 0,5,7.5,10, minor tics at 1,2,3,4,6,7,8,9
     set logscale y
     set format y ""
     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 10

Major 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 axis4#4border and {no}mirror specified for the major tics. Please see set xtics (p. [*]) for information about these.


next up previous contents index
Next: My2tics Up: Set-show Previous: Mx2tics   Contents   Index
Ethan Merritt 2007-03-03