cla() ?

David Bateman dbateman at dbateman.org
Fri Oct 3 15:26:17 CDT 2008


Ben Abbott wrote:
> I just noticed there is no cla() function.
> 
> Over the weekend I'll add a new trivial function for gca().
> 
> I took a quick look at what delete(gca) would do.
> 
> octave-3.1.51+:79> figure(1)
> octave-3.1.51+:80> axis;
> octave-3.1.51+:81> plot(1:10)
> octave-3.1.51+:82> delete(gca)
> octave-3.1.51+:83> plot(1:10)
> error: axes: expecting argument to be axes handle
> error: called from:
> error:   /sw/share/octave/3.1.51+/m/plot/axes.m at line 54, column 7
> error: axes: expecting argument to be axes handle
> error: called from:
> error:   /sw/share/octave/3.1.51+/m/plot/axes.m at line 54, column 7
> error:   /sw/share/octave/3.1.51+/m/plot/plot.m at line 187, column 5
> octave-3.1.51+:84> gca
> ans = -67.893
> 

Congrats, it looks like you've found the bug I've been struggling with 
(though not much recently). Check the thread

http://www.nabble.com/base_graphics_backend-to19385836.html

If you do find the reason, then I'll be able to apply my plotyy/colotbar 
changes and we can get that little bit closer to a 3.2 releasew :-)

D.

-- 
David Bateman                                dbateman at dbateman.org
35 rue Gambetta                              +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)


More information about the Octave-maintainers mailing list