bugGNU Octave - Bugs: bug #38146, newplot() doesn't return the...


bug #38146: newplot() doesn't return the handle to the prepared axes

Submitted by:  None
Submitted on:  Tue 22 Jan 2013 09:02:51 PM UTC  
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  3.6.2
Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

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


( Jump to the original submission)

Mon 12 Aug 2013 10:43:19 PM UTC, comment #6:

Sorry, thanks a lot for the great work :))

Ricardo Cruz <rpmcruz>
Mon 12 Aug 2013 10:41:51 PM UTC, comment #5:

Yes, it is fixed as shown in the changeset linked in comment #3.

It is not fixed in any currently released version of Octave, you will have to wait for the next major release of Octave 3.8.0 to get this fix, or build Octave from the development source.

Mike Miller <mtmiller>
Project Administrator
Mon 12 Aug 2013 09:51:55 PM UTC, comment #4:

Guys, this is not fixed yet !! This can be easily fixed though if you do:

- function newplot ()
+ function ca = newplot ()

Ricardo Cruz <rpmcruz>
Thu 21 Feb 2013 12:15:13 AM UTC, comment #3:

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/c90c9623b20f).

Rik <rik5>
Project Administrator
Tue 22 Jan 2013 09:47:30 PM UTC, comment #2:

Apparently newplot() has been extended to return a handle to the axes (not figure) that is created. See documentation for newplot here (http://www.mathworks.com/help/matlab/ref/newplot.html).

Accordingly, I'm marking this as a compatibility issue.

Rik <rik5>
Project Administrator
Tue 22 Jan 2013 09:11:40 PM UTC, comment #1:

newplot by itself should not return anything, so I think you need a check on nargout.

John W. Eaton <jwe>
Project Administrator
Tue 22 Jan 2013 09:02:51 PM UTC, original submission:

ax = newplot;
prepares the axes but fails to return the handle.

in share/octave/3.6.2/m/plot/newplot.m:

function ca = newplot ()



(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

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rpmcruz (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-12 mtmiller Dependencies- => bugs #39776 is dependent
    2013-02-21 rik5 StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2013-01-22 rik5 Item GroupNone => Matlab Compatibility
        StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.3