bugGNU Octave - Bugs: bug #58430, legend() returns handle to...


bug #58430: legend() returns handle to graphics object even nargout == 0

Submitted by:  Daniel Molina García <dmolina>
Submitted on:  Fri 22 May 2020 10:37:29 PM UTC  
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

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


Sat 23 May 2020 03:23:03 PM UTC, comment #3: 

Fixed in this changeset: https://hg.savannah.gnu.org/hgweb/octave/rev/3da71c0527a1.

Closing report.

Rik <rik5>
Project Administrator
Sat 23 May 2020 08:03:00 AM UTC, comment #2: 

My fault. "legend" should be in the title instead of "label". I am  only reporting about "legend".

I think I have no permissions to change the title, feel free to do it by yourself.

Daniel Molina García <dmolina>
Sat 23 May 2020 06:32:39 AM UTC, comment #1: 

The bug summary says "label", but the example code seems to use "legend".  Could you clarify?

Rik <rik5>
Project Administrator
Fri 22 May 2020 10:37:29 PM UTC, original submission:  

Example to reproduce it:

octave:1> graphics_toolkit gnuplot
octave:2> plot ([1, 2], [1, 2])
octave:3> legend('A')
ans = -7.7682

Daniel Molina García <dmolina>


(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 dmolina (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-23 rik5 StatusNeed Info => Fixed
        Open/ClosedOpen => Closed
    2020-05-23 rik5 Summary"label" outputs a scalar => legend() returns handle to graphics object even nargout == 0
    2020-05-23 rik5 StatusNone => Need Info

    Back to the top

    Powered by Savane 3.5