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 Jan 22 21:02:51 2013  
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.2
Operating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


(Jump to the original submission Jump to the original submission)

Mon Aug 12 22:43:19 2013, comment #6:

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

Ricardo Cruz <rpmcruz>
Mon Aug 12 22:41:51 2013, 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 Aug 12 21:51:55 2013, 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 Feb 21 00:15:13 2013, comment #3:

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

Rik <rik5>
Project Administrator
Tue Jan 22 21:47:30 2013, 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 Jan 22 21:11:40 2013, 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 Jan 22 21:02:51 2013, 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 File(s):

No files currently attached


Depends on the following items: None found

   bug dependencies.


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

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

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Aug 12 22:42:46 2013mtmillerDependencies-=>bugs #39776 is dependent
    Thu Feb 21 00:15:13 2013rik5StatusConfirmed=>Fixed
    Tue Jan 22 21:47:30 2013rik5Item GroupNone=>Matlab Compatibility

    Back to the top

    Powered by Savane 3.1-cleanup1