The manual claims that the default format string is "%g", but src/axis.h
actually has
#define DEF_FORMAT "% g"
This space is significant to (at least) users of the epslatex terminal,
since with the default format, x-axis tics at non-negative values get
typeset by, e.g.,
\put(x,y){\makebox(0,0){\strut{} 123}}
In this context, the space is significant; the effect is that x-axis
tic labels are not properly centred on their tics, but slightly offset
to the right.
The manual does recommend
set format '$%g$'
to LaTeX users, which by omitting the space does indeed fix the alignment
problem (besides getting proper negative signs by using math mode).
I propose that gnuplot.texi be amended to give the correct default
format string, and to describe the space along with the other modifiers.
See the attached patch for an example.
--
Steven Taschuk "[W]e must be very careful when we give advice
sta...@te... to younger people: sometimes they follow it!"
-- "The Humble Programmer", Edsger Dijkstra
|