|
From: Petr M. <mi...@ph...> - 2007-06-14 20:36:21
|
> > I was always puzzled by "currently [-10:10]" when the range was completely
> > different. Indeed, "default" is the correct word. However, this information
> > is completely useless. I usually want to show the real xrange, not the
> > unused default. Nowadays, I can do
> > print GPVAL_Y_MIN, GPVAL_Y_MAX
> > but that's rather cumbersome and not easy to find for others.
> >
> > I proposed to apply Daniel's patch. Then, via "show yrange", I can easily
> > copy the real current range to my script, and edit the range manually.
>
> OK. I warn you that the existing code for zoom/unzoom actually looks at
> these values, so it is possible this may change the zoom behaviour.
> But the "refresh" patch I've been working on replaces that code anyhow,
> so now might not be such a bad time to take the risk.
No, it does not. The output from Daniel's patch only effects what is printed
on the screen as a comment. Compare:
current-gnuplot> set xrange [-2:2]; p x*x-1; show yrange
set yrange [ * : * ] noreverse nowriteback # (currently
[-10.0000:10.0000] )
patched-gnuplot> set xrange [-2:2]; p x*x-1; show yrange
set yrange [ * : * ] noreverse nowriteback # (currently
[-1.00000:3.50000] )
The latter is much more logic, but it's just a comment for the user.
---
PM
|