|
From: Ethan A M. <merritt@u.washington.edu> - 2006-07-27 19:08:56
|
On Thursday 27 July 2006 01:26 pm, Timoth=E9e Lecomte wrote: > Ethan Merritt wrote: > > I suggest that wxt should work similarly. When gnuplot sees that 'exit' > > command, it should set a flag for wxt to see. With the flag set, all > > operations that require code outside the wxt driver itself should be > > disabled. > > =20 > In the case of wxt, gnuplot is still there and the routines definitely=20 > available. > On the other hand, disabling all operations that require core routines=20 > means disable all mouse routines. That would be sad. But if you want to continue using gnuplot, why did you exit from it? As I see it, the keyword "persist" means "Keep the last plot on the screen even after gnuplot goes away". There is no promise that you can continue to plot new things or change the plot that is already there. Indeed there is no promise that you can continue to read mouse coordinates either, although x11 does allow that and wxt can certainly do the same. Post-4.2 we can re-examine what additional operations are reasonable to support while in this persistent state. This is directly analogous to the set of mousing operations it would be possible to support in an embedded SVG plot. Since gnuplot itself is no longer around at the time of interaction with the SVG document, all information for mouse interaction must be embedded with it. =20 =46or example, I'd like to rework zooming so that it does not require re-reading data from a file. This would have a number of benefits: 1) It would be possible to zoom plots read from in-line data (plot '-'). This would benefit all drivers. 2) It would (maybe) be possible to do at least simple zooming directly in gnuplot_x11 without involving calls back to gnuplot. SVG supports zooming natively, but exactly what that means for a gnuplot-generated plot I am not yet sure. 3) It would be possible to have zooming active for more than one plot, at least for x11 and svg. Maybe wxt and pm as well. Ethan =2D-=20 Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |
|
From: <tim...@en...> - 2006-07-27 20:20:01
|
Ethan A Merritt wrote: > On Thursday 27 July 2006 01:26 pm, Timoth=E9e Lecomte wrote: > =20 >> Ethan Merritt wrote: >> =20 >>> I suggest that wxt should work similarly. When gnuplot sees that 'ex= it' >>> command, it should set a flag for wxt to see. With the flag set, all >>> operations that require code outside the wxt driver itself should be >>> disabled. >>> =20 >>> =20 >> In the case of wxt, gnuplot is still there and the routines definitely= =20 >> available. >> On the other hand, disabling all operations that require core routines= =20 >> means disable all mouse routines. That would be sad. >> =20 > > But if you want to continue using gnuplot, why did you exit from it? > =20 I guess the idea was to use "persist" when gnuplot exits _itself_, i.e.=20 when the input is a script and gnuplot reaches the end. > As I see it, the keyword "persist" means > "Keep the last plot on the screen even after gnuplot goes away". > =20 That's how it works for the x11 terminal. But as wxt (and the windows terminal too) lives _in_ gnuplot, this=20 meaning doesn't make sense anymore, and becomes : "Don't exit until all plot windows are closed." And then, why not supporting mouse operations since we can ? > Post-4.2 we can re-examine what additional operations are reasonable to > support while in this persistent state. This is directly analogous to = the > set of mousing operations it would be possible to support in an embedde= d > SVG plot. Since gnuplot itself is no longer around at the time of > interaction with the SVG document, all information for mouse interactio= n > must be embedded with it. =20 > > For example, I'd like to rework zooming so that it does not require > re-reading data from a file. I also have a couple of plans for post-4.2 regarding mouse interaction,=20 now that I am a bit more familiar with the current behaviour. The svg stuff seems very exciting by the way. Best regards, Timoth=E9e |
|
From: Petr M. <mi...@ph...> - 2006-07-27 21:20:31
|
> "Don't exit until all plot windows are closed." > And then, why not supporting mouse operations since we can ? Just to remember you: In the first years of mousing (since cca 1997 or 98), mousing was directly in the driver (pm, then x11). Later (cca 2000) it changed into term api and thus the gnuplot core was required for mousing. --- PM |