[Top][All Lists]

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

[Octave-bug-tracker] [bug #41588] findobj() wrongly processes '-not'

From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #41588] findobj() wrongly processes '-not'
Date: Sun, 16 Feb 2014 11:51:01 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0

Follow-up Comment #1, bug #41588 (project octave):

Here is what matlab returns for the provided example:

>> figure (1);
>> li = plot (1:10,sin(1:10));
>> ret = findobj (gcf,'-not','type','axes');
>> ret' == [gcf() li]
ans =

     1     1

I think this particular octave behavior was intended (see the comment in
findobj.m near line 180) and it would be useful to have Ben's input here.

Octave works well as long as "-not" is not the first argument after the
graphics handle:

>> figure (1);
>> li = plot (1:10,sin(1:10));
>> ret = findobj (gcf,'visible', 'on', '-not','type','axes');
>> ret' == [gcf() li]
ans =

     1     1


Reply to this item at:


  Message posté via/par Savannah

reply via email to

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