octave-maintainers
[Top][All Lists]
Advanced

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

Re: cla() ?


From: Ben Abbott
Subject: Re: cla() ?
Date: Fri, 03 Oct 2008 16:42:42 -0400

 On Friday, October 03, 2008, at 04:26PM, "David Bateman" <address@hidden> 
wrote:
>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 release :-)
>
>D.

This is as far as I have gone.

octave-3.1.51+:96> figure(1)
octave-3.1.51+:97> subplot(211)
octave-3.1.51+:98> subplot(212)
octave-3.1.51+:99> hax = get(gcf,'children')
hax =

  -40.963  -28.300

octave-3.1.51+:100> ishandle(hax)
ans = 0
octave-3.1.51+:101> ishandle(hax(1))
ans =  1
octave-3.1.51+:102> ishandle(hax(2))
ans =  1

The ishandle function should return a result for each member of it's input with 
the same shape as it's input.

As I am limited to the m-file caste, I hope one of you guys in the upper c++ 
caste can take this on ;-)

If this really is the same problem as the one you posted the link to, than I 
expect my conclusion as to what the problem is that I've encountered is quite 
overly simplified.

Ben




reply via email to

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