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

 
 

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

Submitter:  None
Submitted:  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 Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
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:

scripts/plot/newplot.m
- function newplot ()
+ function ca = newplot ()

Ricardo Cruz <rpmcruz>
Thu 21 Feb 2013 12:15:13 AM UTC, comment #3: 
Rik <rik5>
Group 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>
Group 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>
Group 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 ()
         ^^^^^
        missing

Anonymous

 

(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

Digest:
   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)
  •  

    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 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.13-758e.
    Corresponding source code