|
From: Ethan M. <merritt@u.washington.edu> - 2007-06-14 21:13:06
|
On Thursday 14 June 2007 13:36, 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. > > No, it does not. The output from Daniel's patch only effects what is printed > on the screen as a comment. Ah, OK then. I thought he was proposing to update the values themselves in the axis structure. Sure, printing the current value is much more useful than always printing [10:10]. Ethan > 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 > -- Ethan A Merritt Courier Deliveries: 1959 NE Pacific Dept of Biochemistry Health Sciences Building University of Washington - Seattle WA 98195-7742 |