|
From: Ethan M. <merritt@u.washington.edu> - 2008-01-23 00:20:03
|
On Tuesday 22 January 2008 16:03, Maximilian Fabricius wrote: > Hi all, > > fist of all I apologize if this topic came up recently already. > > I love to use shell scripts for my work and to use gnuplot to present > intermediate results. > Now, it would be great if I could present a plot, let the user use all > the great interactive > features of the x11 terminal like zooming and continue my script only > after the user closed > the terminal. Alternatively if I could define a key - "q" for example > - which closes the current plot > and continues the gunplot script, that would be great. You have many such options. Please see the examples given with "help pause". In the CVS version of gnuplot you also have the option to bind an arbitrary command sequence to the event generated by closing the plot window: bind "close" "N=N+1; load 'plot'.N" That would load successive plots plot1 plot2 plot3 etc; each would display until the window was closed, then the next one would pop up in sequence. > Before I start digging through code, is there already a solution to > this? There are many solutions. As to focus or re-focus of the window to catch keystrokes, that is more a matter for your window manager than for gnuplot. -- Ethan A Merritt |