set xtics <incr> set xtics <start>, <incr>, <end>The implicit
If you specify to a negative start
or
incr
after a numerical value
(e.g., rotate by
angle
or offset
offset
), the parser fails because
it subtracts
start
or
incr
from that value. As a workaround, specify
0-
start
resp. 0-
incr
in that case.
Example:
set xtics border offset 0,0.5 -5,1,5Fails with 'invalid expression' at the last comma.
set xtics border offset 0,0.5 0-5,1,5or
set xtics offset 0,0.5 border -5,1,5Sets tics at the border, tics text with an offset of 0,0.5 characters, and sets the start, increment, and end to -5, 1, and 5, as requested.
The set grid options 'front', 'back' and 'layerdefault' affect the drawing order of the xtics, too.
Examples:
Make tics at 0, 0.5, 1, 1.5, ..., 9.5, 10.
set xtics 0,.5,10
Make tics at ..., -10, -5, 0, 5, 10, ...
set xtics 5
Make tics at 1, 100, 1e4, 1e6, 1e8.
set logscale x; set xtics 1,100,1e8