bugGNU Octave - Bugs: bug #37211, gco should not create a figure if...

 
 

bug #37211: gco should not create a figure if none exists

Submitter:  Guillaume <gyom>
Submitted:  Tue 28 Aug 2012 05:30:14 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
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
   

Wed 29 Aug 2012 08:26:54 AM UTC, comment #2: 

It's the responsibility of the backend to provide a relevant value for the currentobject property. At the moment, only QtHandles does it.

Michael Goffioul <goffioul>
Tue 28 Aug 2012 11:24:04 PM UTC, comment #1: 

I modified gco.m along the lines you suggested.  The changeset is here (http://hg.savannah.gnu.org/hgweb/octave/rev/fa8f3955e70a).

Incidentally, does gco work at all for you?  It seems to always return the empty matrix.  That is probably a separate bug report that should get filed.

Rik <rik5>
Group administrator
Tue 28 Aug 2012 05:30:14 PM UTC, original submission:  

In its current implementation, gco() creates a figure if none exists (through gcf()), while MATLAB would return []: this is mentioned explicitly in the help text of the function.

Could the implementation of gco() be changed to:

h = get(get (0, "currentfigure"), "currentobject");


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
    2012-08-28 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2012-08-28 gyom Carbon-Copy- Added goffioul

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code