bugGNU Octave - Bugs: bug #38817, invalid handle error after...

 
 

bug #38817: invalid handle error after legend() and two calls to set()

Submitter:  Sébastien Villemot <svillemot>
Submitted:  Wed 24 Apr 2013 09:16:09 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 20 Jun 2013 12:15:49 AM UTC, comment #3: 

Happily, there hase been quite a bit of work on the legend() function and this has been fixed in the development code.  The reporter will need to build from development sources or wait until the next major release of Octave (3.8) to see the fix.

Rik <rik5>
Group administrator
Wed 24 Apr 2013 04:42:02 PM UTC, comment #2: 

Works correctly for me in current devel
system.

Michael Godfrey <godfrey>
Group Member
Wed 24 Apr 2013 09:18:11 AM UTC, comment #1: 

Sorry, trying again.

The following code crashes:

x=0:20;
y=x;
yy=20:-1:0;
hold on
grid on

line_handles(1) = line(x, y,  'Color', 'r');
line_handles(2) = line(x, yy, 'Color', 'k');

lh = legend(line_handles, {'y','yy'});
set(lh, 'orientation', 'horizontal');
set(lh, 'location', 'southeast');


The second call to set() fails with the following error:

error: set: invalid handle (= -10.632)


Note that grouping the last three lines in a single call to legend() works fine.

Sébastien Villemot <svillemot>
Wed 24 Apr 2013 09:16:09 AM UTC, original submission:  

The following code crashes:


x=0:20;
y=x;
yy=20:-1:0;
hold on
grid on

line_handles(1) = line(x, y,  'Color', 'r');
line_handles(2) = line(x, yy, 'Color', 'k');

lh = legend(line_handles, {'y','yy'});
set(lh, 'orientation', 'horizontal');
set(lh, 'location', 'southeast');
+verbatim+

The second call to set() gives the following error:
+verbatim+
error: set: invalid handle (= -10.632)
+verbatim+

Note that grouping together the last three lines (in a single call to legend()) works fine.

Sébastien Villemot <svillemot>

 

(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 godfrey (Posted a comment)
  • -email is unavailable- added by svillemot (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-20 rik5 Item GroupSegfault, Bus Error, etc. Incorrect Result
        StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code