|
From: <pl...@pi...> - 2007-06-14 18:48:44
|
On Thu, 14 Jun 2007 20:26:46 +0200, Ethan Merritt <merritt@u.washington.edu> wrote: > On Thursday 14 June 2007 01:10, Petr Mikulik wrote: >> >> 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. > since you are looking at zoom, I have noticed that current code does not unzoom as I expected having read the doc. 'u' just jumps back to initial unzoomed plot. I seem to recall the doc saying it goes to "previous" zoom state. Thus if I do two successive zooms I'd expected to back out in two steps with 'u'. Maybe I just misunderstood, if so, this may be a good idea. I often want to do just this and end up having to repeat the first zoom. Thx |