|
From: <pl...@pi...> - 2008-03-24 07:22:41
|
Hi, unless I have missed something it seems there is no way to scroll a zoomed view of a plot with the on screen terminals. I invariably find I need to back out to a previous zoom level and redefine the zoom. I would considerably speed things up if the arrow keys allowed to scroll the same sized zoom in x or y. To prevent this being very slow (since it is basically a replot) it would probably be most useful to move one major tic at a time. If I am studying some data in detail I do want to have to break off mentally to zoom out , recall which bit I was looking at on the larger scale and then zoom back in a bit to the left. One keypress on the arrow keys would mean I did not even need to take my eyes off the screen. This would be a major plus in usability for on screen data viewing. Thx, Peter. |
|
From: Petr M. <mi...@ph...> - 2008-03-24 20:47:11
|
> I invariably find I need to back out to a previous zoom level and redefine > the zoom. I would considerably speed things up if the arrow keys allowed > to scroll the same sized zoom in x or y. > > This would be a major plus in usability for on screen data viewing. You can do it easily yourself by "bind"ing arrow keys into commands like "set xrange [GPVAL_X_MIN+100:GPVAL_X_MAX+100]; replot" on gnuplot 4.1 and "set xrange [GPVAL_X_MIN+100:GPVAL_X_MAX+100]; refresh" on 4.3. See "help bind" and "show var all" for mode details. --- PM |
|
From: <pl...@pi...> - 2008-03-29 18:57:45
|
On Mon, 24 Mar 2008 08:22:57 +0100, <pl...@pi...> wrote: > Hi, > > unless I have missed something it seems there is no way to scroll a > zoomed view of a plot with the on screen terminals. > > I invariably find I need to back out to a previous zoom level and > redefine the zoom. I would considerably speed things up if the arrow > keys allowed to scroll the same sized zoom in x or y. > > To prevent this being very slow (since it is basically a replot) it > would probably be most useful to move one major tic at a time. > > If I am studying some data in detail I do want to have to break off > mentally to zoom out , recall which bit I was looking at on the larger > scale and then zoom back in a bit to the left. > > One keypress on the arrow keys would mean I did not even need to take my > eyes off the screen. > > This would be a major plus in usability for on screen data viewing. > > Thx, Peter. Looking at this again , I wonder if it can be done with macros. It would be easy to bind something to "Left" (or whatever key is prefered) but I dont see any exposed variables relating to the zoom window that could be tweeked by a gnuplot command. Can anyone suggest if there is a way to adjust the current zoom window parameters before calling replot? TIA. Peter. |
|
From: Petr M. <mi...@ph...> - 2008-03-29 21:03:54
|
> Looking at this again , I wonder if it can be done with macros. > > It would be easy to bind something to "Left" (or whatever key is prefered) > but I dont see any exposed variables relating to the zoom window that > could be tweeked by a gnuplot command. I think I've sent a recipe how to do it. Anyway, here is a full implementation: # 4.2.x: use "replot" command # 4.3: use "refresh" command # Note: only for linear scale; for GPVAL_X_LOG!=0, do it accordingly DELTA_X(a)=a*(GPVAL_X_MAX-GPVAL_X_MIN)*0.5 DELTA_Y(a)=a*(GPVAL_Y_MAX-GPVAL_Y_MIN)*0.5 # enlarge limits independently: bind "Ctrl-Right" \ "set xrange [GPVAL_X_MIN+DELTA_X(1):GPVAL_X_MAX+DELTA_X(1)]; replot" bind "Ctrl-Left" \ "set xrange [GPVAL_X_MIN-DELTA_X(1):GPVAL_X_MAX-DELTA_X(1)]; replot" # scroll: bind "Right" "set xrange [GPVAL_X_MIN:GPVAL_X_MAX+DELTA_X(2)]; replot" bind "Left" "set xrange [GPVAL_X_MIN-DELTA_X(2):GPVAL_X_MAX]; replot" # squeeze limits independently: not needed, use zoom by mouse instead # enlarge limits independently: bind "Ctrl-Up" "set yrange [GPVAL_Y_MIN+DELTA_Y(1):GPVAL_Y_MAX+DELTA_Y(1)]; replot" bind "Ctrl-Down" "set yrange [GPVAL_Y_MIN-DELTA_Y(1):GPVAL_Y_MAX-DELTA_Y(1)]; replot" # scroll: bind "Up" "set yrange [GPVAL_Y_MIN:GPVAL_Y_MAX+DELTA_Y(2)]; replot" bind "Down" "set yrange [GPVAL_Y_MIN-DELTA_Y(2):GPVAL_Y_MAX]; replot" # squeeze limits independently: not needed, use zoom by mouse instead |
|
From: <pl...@pi...> - 2008-03-30 21:01:25
|
On Sat, 29 Mar 2008 19:57:50 +0100, <pl...@pi...> wrote: > On Mon, 24 Mar 2008 08:22:57 +0100, <pl...@pi...> wrote: > >> Hi, >> >> unless I have missed something it seems there is no way to scroll a >> zoomed view of a plot with the on screen terminals. >> >> I invariably find I need to back out to a previous zoom level and >> redefine the zoom. I would considerably speed things up if the arrow >> keys allowed to scroll the same sized zoom in x or y. >> >> To prevent this being very slow (since it is basically a replot) it >> would probably be most useful to move one major tic at a time. >> >> If I am studying some data in detail I do want to have to break off >> mentally to zoom out , recall which bit I was looking at on the larger >> scale and then zoom back in a bit to the left. >> >> One keypress on the arrow keys would mean I did not even need to take >> my eyes off the screen. >> >> This would be a major plus in usability for on screen data viewing. >> >> Thx, Peter. > > Looking at this again , I wonder if it can be done with macros. > > It would be easy to bind something to "Left" (or whatever key is > prefered) but I dont see any exposed variables relating to the zoom > window that could be tweeked by a gnuplot command. > > Can anyone suggest if there is a way to adjust the current zoom window > parameters before calling replot? > > TIA. Peter. > > BTW if there are no zoom variables exposed (which appears to be the case) what file is the zoom code in, I may try to take a look if I can find some of that mythical free time people sometimes refer to. regards, Peter. |
|
From: Petr M. <mi...@ph...> - 2008-03-31 06:38:42
|
> BTW if there are no zoom variables exposed (which appears to be the case) > what file is the zoom code in, I may try to take a look if I can find some > of that mythical free time people sometimes refer to. I've sent you two emails, one with answer, one with a solution. Your email address/mail server has permanent errors. You should fix them, or read the archive. See also: show variables all --- PM |