repositioning of gnuplot figures (was: new subplot bug)

Ben Abbott bpabbott at mac.com
Fri Feb 20 10:41:04 CST 2009


On Feb 18, 2009, at 6:34 PM, John W. Eaton wrote:

> On 18-Feb-2009, Ben Abbott wrote:
>
> | It occurs to me that the problem is likely related to the figure's
> | current axes.
> |
> | Is there a way to restrict a specific axes from qualifying as the
> | current axes? (I suspect the hidden axes used by gnuplot_drawnow to
> | hold the figures prior position property is the probem ...  
> although I
> | have no idea how it becomes visible).
> |
> | If not, then a different solution for storing the prior figure
> | position will be needed.
> |
> | I'll propose an approach either later this evening or tomorrow.
> | However, I'd prefer to find out how a hidden axes becomes visible
> | before committing a solution that hides that feature/bug.
>
> I didn't realize that there are hidden axes used for keeping track of
> prior position info, so I'm afraid I can't be of much help here.
>
> jwe

John/others,

Regarding keeping track of changes in a figures "position" property,  
I'd like to propose a solution. (1) create a new function that stores  
property info which can be later referenced by the object's handle,  
(2) have gnuplot_drawnow compare the current figure's position  
property with the prior one and reposition the figure if the property  
has changed.

I've attached a changeset for comment/discussion.

If this proposal is acceptable, should such a function be made private  
to the functions in scripts/plot ?

Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-figure_reposition.patch
Type: application/octet-stream
Size: 4681 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090220/42def7d9/attachment.obj 
-------------- next part --------------







More information about the Octave-maintainers mailing list