[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38817] invalid handle error after legend() an
From: |
Sébastien Villemot |
Subject: |
[Octave-bug-tracker] [bug #38817] invalid handle error after legend() and two calls to set() |
Date: |
Wed, 24 Apr 2013 09:18:11 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20100101 Firefox/10.0.12 Iceweasel/10.0.12 |
Follow-up Comment #1, bug #38817 (project octave):
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38817>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/