gnuplot, figure.position, & the moving window

Ben Abbott bpabbott at mac.com
Tue Feb 17 17:47:41 CST 2009


Presently the developers sources uses gnuplot 4.3 to set the position  
and size of the x11 figure window (as specified by the figure position  
property).

One side effect is that both octave and gnuplot are unaware of changes  
in the figure window's position or size made by mouse actions. As a  
result the current implementation returns the figure to the location  
and size specified by the figure's position property when the figure  
is updated (again this only happens with gnuplot 4.3).

To solve this properly the gnuplot backend needs ...

(1) To know the "position" property when gnuplot_drawnow was called  
last.

(2) Needs mouse movements of the figure to trigger a listener (this is  
impractical for the gnuplot backend).

(3) Needs to be able to determine the location/size of the figure  
window on the screen.

The attached changeset is intended to address (1). Eventually the  
gnuplot backend can adopt the solution what I expect will emerge for  
the fltk backend. For the time being I'm using a hidden axis to hold  
the prior state of the figure position.

For the upcoming 3.2 release, I'd like to either include this change,  
introduce one with equivalent functionality or modify  
__gnuplot_has_feature__ so as to suppress the unexpected movement of  
the figure window.

Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-figure_position.patch
Type: application/octet-stream
Size: 4640 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090217/512243f3/attachment-0001.obj 
-------------- next part --------------



More information about the Octave-maintainers mailing list