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


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

Submitted by:  Guillaume <gyom>
Submitted on:  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

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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>
Project 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:

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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.5