octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: support for advanced gnuplot features (was: Plotting semi-trasnparen


From: Daniel J Sebald
Subject: Re: support for advanced gnuplot features (was: Plotting semi-trasnparent patches?)
Date: Sun, 01 Feb 2009 13:05:21 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

John W. Eaton wrote:
On 29-Jan-2009, Ben Abbott wrote:

| | On Jan 28, 2009, at 9:57 PM, John W. Eaton wrote: | | > Even without a version of gnuplot that supports the X11 window
| > position feature, I see a difference with this patch, and I wasn't
| > expecting that.  Given the following sequence
| >
| >  xlabel ("foo");
| >  ## move window with mouse
| >  ylabel ("bar");
| >
| > Without the patch, the window stays put after moving it with the
| > mouse.
| >
| > With the patch, and a version of gnuplot that does not support the
| > position feature, the window moves back to its original position after
| > the ylabel call.
| | I think you got that backwards (or my changeset is improperly | implemented). | | With or without my changeset , and without the gnuplot patch | supporting the position feature, the window should stay put.

It doesn't, at least for me.  When I apply the patch and use gnuplot
4.2.2, and execute the sequence above, the window moves back to the
original position after the call to ylabel.  If I remove the patch,
the window stays put.

| If the event it is sensible to have gnuplot pass back each figure's | window x11 id (is it called that?), it should be possible for to | detect movements of the windows by the use and to reflect that in the | properties. | | Is that a sensible thing to do? | | ... and does anyone know enough about x11 to explain how that should | be implemented?

I think the simplest thing would be to query the window's geometry.
Maybe that could be limited to any time we need to get the position
property for the figure window.  But first you need to be able to get
the window id, or whatever is needed to get the geometry of the window
back from gnuplot.  Is that possible, or will it require changes to
gnuplot?

gnuplot X11 term can accept a window ID into which it should plot.  So if one 
creates an X11 window in their app, keep track of the ID and also send the ID 
to gnuplot, it's possible to get the window position from the ID and X routines.

Of course, the trend in computing is platform independence, so a more general 
form of window positioning is preferred.  There was always talk on the gnuplot 
discussion list of unifying the way terminal position is handled.

Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]