|
From: Lutz M. <lut...@gm...> - 2008-05-20 00:28:52
|
Hi Ethan,
> I've made this change in scanner.c get_num().
> It fixes the overflows on a system that handles stderr properly (linux)
> and does no worse that the previous code on a system that doesn't (sunos
> 4.1).
I just tried the current CVS build, and the problems with interactive
zooming remain, except that I don't get an error message anymore ;)
As you mentioned before, the problem is that large numbers, such as those
generated by apply_zoom() when using logarithmic axes, are not recognized
as floating point values when they do not contain a decimal point:
gnuplot> set yr[313136844993:1.8789321221e+13]
gnuplot> show yr
set yrange [ -3.95768e+08 : 1.87893e+13 ] noreverse nowriteback
This obviously doesn't work when the y-axis is logarithmic.
Changing "%.12g" to "%.12E" in apply_zoom() fixed this issue for me.
Thanks for looking into this,
Lutz
|