From: Theo H. <th...@ph...> - 2008-07-29 16:31:50
|
Hi all. Why does `set format y "%5f"` not work like `set format y "%5g"`? I'm dealing with numbers between 0 and 5, so I would expect both to produce tic labels with right justified floating point numbers in a field of five characters, with no trailing zeros. %5g does, but %5f doesn't: it produces tic labels with six decimal places and trailing zeros. I've tried 4.2.3 and the latest CVS on Cygwin, and 4.3.0 (dated February 2008) on Linux. Minimal example: reset plot x set format y "%5g" replot set format y "%5f" replot According to my interpretation of the documentation, the last two plots should be identical. THeo |