|
From: <HBB...@t-...> - 2008-01-31 21:15:00
|
Petr Mikulik wrote:
> a question is: how to get a "nice" %t? Something like %g? Here is an
> example:
>
> set format x "%t*10^{%T}"
> set xrange [1.1e8:1.8e8]
[...]
> Can the appropriate number of digits be decided automatically by gnuplot?
gnuplot doesn't doesn't really do that in the case of the default format
"% g", either. The Standard C functions of the *printf() family do it
all by themselves, because they remove trailing zeroes in %g mode.
The real difference is between the %f and %g formats of printf():
set ytics nomirror ; set y2tics
set format y '% g'
set format x '% f'
set format y2 '% t'
plot [1.01:1.08] x, x axes x1y2
It might be possible to implement %t by use of %f instead of %g, but I
wouldn't like to have to guarantee that there are no offensive consequences.
|