From: Ethan M. <merritt@u.washington.edu> - 2004-06-21 17:15:41
|
On Monday 21 June 2004 06:24 am, John Cerney wrote: > I am waiting for mouse input so that mousing is available while the user > is viewing the plot. For example, if a 3d surface plot is displayed, I > would do a "pause mouse" so that the users could rotate/scale with plot > with their mouse. But that's not going to work. If you say "pause mouse" then it will terminate at the first mouse click (or actually at the first time the button is released). So you can't do rotate/scale/zoom inside a pause mouse as it is currently implemented. This is something that Petr and I were discussing before, but we didn't come to any particular resolution. But you don't need a 'pause mouse' command for this anyhow. What's wrong with a regular 'pause -1' command? You can still exit from the pause via a ctrl-C, or a hotkey, or an external trigger. Another possibility is to put gnuplot into a loop that goes something like load 'loop-until-key' where the file 'loop-until-key' contains pause 1 if (MOUSE_KEY != <something>) reread Actually I don't think that quite works currently, but it could be made to work if people decide it's a useful option. > > Wouldn't it be > > better to program a hot key ("bind <key> '<gnuplot commands>'")? > > That way the user can either hit the appropriate key or close > > the window and in either case the response is handled asynchronously. > > I could have a hotkey to close the window, but users are so conditioned > to just close windows when they are done with a window, I don't think > many would actually use the hotkey. The cvs version should now be able to detect normal window-close events. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |