bugGNU Octave - Bugs: bug #45563, Linewidth not consistent in legend

 
 

bug #45563: Linewidth not consistent in legend

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Thu 16 Jul 2015 03:10:56 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 29 Jul 2015 08:15:27 PM UTC, comment #1: 

I fixed this issue here (http://hg.savannah.gnu.org/hgweb/octave/rev/71bd638e0ef6) on the development branch.

Rik <rik5>
Group administrator
Thu 16 Jul 2015 03:10:56 PM UTC, original submission:  

After creating lines and their legend using the ";legend;" syntax in plot arguments, changing the linewidth property of lines only updates the first legend entry linewidth.
It works perfectly if I use the "legend" function to create the legend.


hli = zeros (1,3);
figure (123); clf; axes (); hold all
for ii = 1:3
  hli(ii) = plot (rand (1,3), sprintf (";%d;", ii));
endfor
hlg = findobj (123, "tag", "legend");
hli2 = findobj (hlg, "type", "line")
get (hli2, "linewidth")
set (hli, "linewidth", 2);
hli2 = findobj (hlg, "type", "line");
get (hli2, "linewidth")


Pantxo Diribarne <pantxo>
Group Member

 

(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 pantxo (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-07-31 rik5 Open/ClosedOpen Closed
    2015-07-29 rik5 StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code