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: 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 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 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 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 12 Aug 2013 10:42:46 PM UTCmtmillerDependencies-=>bugs #39776 is dependent
    Thu 21 Feb 2013 12:15:13 AM UTCrik5StatusConfirmed=>Fixed
    Tue 22 Jan 2013 09:47:30 PM UTCrik5Item GroupNone=>Matlab Compatibility

    Back to the top

    Powered by Savane 3.1-cleanup1