[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52641] Changing legend "displayname" property
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error |
Date: |
Tue, 12 Dec 2017 00:40:27 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #5, bug #52641 (project octave):
I tried something like the following:
function updatename (h, ~, hlegend)
## When string changes, have to rebuild legend completely
[hplots, text_strings] = __getlegenddata__ (hlegend);
## FIXME: See bug #52641. Changing an existing legend string to a blank
## can trigger this.
if (! isempty (hplots))
legend (get (hplots(1), "parent"), hplots, text_strings);
else
curstr = get (hlegend, 'string');
curstr(:) = {''}
set (hlegend, 'string', curstr);
endif
endfunction
but it still produces an error, and the reasons seems to be something about
not finding objects that can be labeled in a legend (but this shouldn't be the
case, it should know there is still something present, i.e., lines)
warning: legend: plot data is empty; setting key labels has no effect
warning: called from
legend at line 378 column 9
legend>updatelegend at line 1081 column 9
legend>updatename at line 1247 column 5
arg =
error: kids(0): subscripts must be either integers 1 to (2^63)-1 or logicals
execution error in graphics callback function
This one looks like tricky loop-back strangeness.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52641>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52641] 'legend' + 'hold on' produces unnecessary error, Hartmut, 2017/12/11
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Rik, 2017/12/11
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Dan Sebald, 2017/12/11
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Dan Sebald, 2017/12/11
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Dan Sebald, 2017/12/11
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error,
Dan Sebald <=
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Dan Sebald, 2017/12/12
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Rik, 2017/12/12
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Dan Sebald, 2017/12/12
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Rik, 2017/12/12
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Dan Sebald, 2017/12/12
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Rik, 2017/12/12
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Dan Sebald, 2017/12/12
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Dan Sebald, 2017/12/13
- [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error, Rik, 2017/12/13