bugGNU Octave - Bugs: bug #43136, "-depth" argument in...

 
 

bug #43136: "-depth" argument in findobj

Submitter:  Guillaume <gyom>
Submitted:  Wed 03 Sep 2014 06:34:04 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 28 Nov 2014 04:04:05 PM UTC, comment #4: 
Rik <rik5>
Group administrator
Tue 25 Nov 2014 11:48:32 AM UTC, comment #3: 

In R2014a, you get:


>> findobj (h, 'type', 'axes', '-flat')
Error using findobj
Incomplete property-value pair.


and in R2014b, you get:


>> findobj (h, 'type', 'axes', '-flat')
Error using findobj
'-flat' is not a valid option to findobj.


Guillaume <gyom>
Tue 18 Nov 2014 06:01:35 AM UTC, comment #2: 

Ping! Can you test the example in comment #1 and post the results?

Rik <rik5>
Group administrator
Tue 04 Nov 2014 05:41:12 AM UTC, comment #1: 

I think Octave attempted to follow Matlab's documentation which suggests that the '-depth' argument must appear first.

In any case, does this also apply to -flat in Matlab?

Is this legal?


hax = gca;
findobj (h, 'type', 'axes', '-flat')


Rik <rik5>
Group administrator
Wed 03 Sep 2014 06:34:04 PM UTC, original submission:  

It seems that in the Octave implementation of findobj, the "-depth" (or "flat") argument has to appear before the list of property param-value pairs, while it can be anywhere in MATLAB.
For example, you can find the following syntax in MATLAB:

findobj(h,'type','axes','-depth',0)


Guillaume <gyom>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-28 rik5 StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2014-11-04 rik5 StatusNone Need Info

    Back to the top

    Powered by Savane 3.14-8eb0.
    Corresponding source code