new subplot bug

Ben Abbott bpabbott at mac.com
Wed Feb 18 17:24:42 CST 2009


On Feb 18, 2009, at 2:24 PM, John W. Eaton wrote:

> On 18-Feb-2009, Ben Abbott wrote:
>
> | hmmm, This is quite strange.
> |
> | clf; for i = 1:2; subplot (2, 1, i); disp(numel(findobj (gcf,  
> "type", "axes"))); plot (x, sin(x)); endfor
> | 1
> | 2
> |
> | clf; for i = 1:2; subplot (2, 1, i); pause; disp(numel(findobj  
> (gcf, "type", "axes"))); plot (x, sin(x)); endfor
> |  2
> |  3
> |
> | The "pause" appears to result in all "visible" properties being  
> set to "on"
>
> The only thing that pause should be doing that is related to plotting
> is calling drawnow.  You can see the same result if you replace pause
> with drawnow in the examples above.
>
> jwe

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.

Ben

  



More information about the Octave-maintainers mailing list