bugGNU Octave - Bugs: bug #59274, fplot(): passed line title is not...

 
 

bug #59274: fplot(): passed line title is not shown in legend.

Submitter:  Martin Castillo <castilma>
Submitted:  Thu 15 Oct 2020 09:52:47 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 16 Oct 2020 02:53:12 AM UTC, comment #2: 

Verified changeset.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Thu 15 Oct 2020 07:08:07 PM UTC, comment #1: 

Thank you for your report.
I pushed a change here that should fix that issue:
https://hg.savannah.gnu.org/hgweb/octave/rev/914816dd2f1a

I also added BISTs for the examples in comment #0.

It will be part of Octave 7. If you'd like to use the updated function before that will be released, you can download it from here:
https://hg.savannah.gnu.org/hgweb/octave/file/914816dd2f1a/scripts/plot/draw/fplot.m

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Thu 15 Oct 2020 09:52:47 AM UTC, original submission:  

When typing
```
fplot(@sin, [0 3], 'DisplayName', 'mysin');
```
or
```
fplot(@sin, [0 3], '+;mysin;');
```
I expect the legend title to be 'mysin', and not the default name 'sin'.

The doc says:
```
Multiple property-value pairs may also be specified, but they must
appear in pairs.  These arguments are applied to the line objects
drawn by ‘plot’.
```
So at least the first version should work.

And I don't see, why the second one shouldn't work.

Martin Castillo <castilma>

 

(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

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 mmuetzel (Posted a comment)
  • -email is unavailable- added by castilma (Submitted the item)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-16 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2020-10-15 mmuetzel CategoryPlotting Octave Function
        StatusNone Ready For Test
        Release5.2.0 dev
        Operating SystemGNU/Linux Any

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code