Axes format is set either by using set format x
either set xtics format
(equivalent commands to y
, z
, x2
, y2
and cb
exist).
Use show format
to find out which format is the default (result for 4.6.6, starting with 5.0 by default % h
)
gnuplot> show format
tic format is:
x-axis: "% g"
...
%g
- gnuplot format specifier, but works similarly to the C format specifiers used for sprintf
and similar functions. Definition %g
according to gnuplot documentation: "shorter %e
and %f
". This is why the format can change for one axis.
So finally, to switch to a fixed format for all ticks, use, for example,
set format y '%.0f'
source
share