bugGNU Octave - Bugs: bug #63531, legend() tries to set displayname...

 
 

bug #63531: legend() tries to set displayname for nonexistent handle

Submitter:  None
Submitted:  Thu 15 Dec 2022 09:34:48 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 8.0.90
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 15 Dec 2022 08:22:12 PM UTC, comment #2: 

Verified changeset.  This will be a part of the upcoming 8.1 release of Octave in the month.

Marking as Fixed and closing report.

Rik <rik5>
Group administrator
Thu 15 Dec 2022 08:14:49 PM UTC, comment #1: 

Thanks for your report. I pushed the following change which fixes the issue for me:

https://hg.savannah.gnu.org/hgweb/octave/rev/06acf9b9d2a6

Pantxo Diribarne <pantxo>
Group Member
Thu 15 Dec 2022 09:34:48 AM UTC, original submission:  

Hi,

I have a problem with the legend function. I invoke legend() pretty often with a varying number of line handles. Since I had problems in the past where settings various properties of the line handles led to the legend auto-updating, I now call legend() with 'autoupdate' set to 'off'.

I've attached a script that replicates the error I encountered (invalid dot name structure assignment because the structure array is empty.). As you can see in the script, the error gets thrown when I change the displayname of a line handle that does currently not appear in the legend but used to be displayed. I thought I had curbed this particular problem with autoupdate->off ...

Is this a proper bug or did I misunderstand the autoupdate property? A workaround is to delete the legend before each invocation of the next legend() command - I used to do that but switched to autoupdate.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #54099:  legend_bug.m added by None (335B - text/x-objcsrc)

 

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 pantxo (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
    2022-12-15 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-12-15 pantxo StatusNone Ready For Test
        Release7.3.0 8.0.90
    2022-12-15 None Attached File- Added legend_bug.m, #54099

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code