octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42034] legend () call should not create legen


From: sergey plotnikov
Subject: [Octave-bug-tracker] [bug #42034] legend () call should not create legend in some cases
Date: Fri, 04 Apr 2014 08:44:23 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36

Follow-up Comment #3, bug #42034 (project octave):

Sorry, I should have provided more details on how I thought.

0 My assumption was that _legend ()_ is identical to _legend (gca)_, which is
not stated explicitly in the documentation, but is quite logical.
0 It was also logical to me (according to the quote I posted) that the empty
legend_handle as an output of _legend (...)_ command may appear only if legend
was not created during that call.
0 Assuming there's a possibility of creating no legend during a call of
_legend (...)_ I tried to come up with a proper inputs (instead of dots) which
could cause such a behavior.
0 _legend (<labels>)_ as well as _legend ("show")_ or _legend ("toggle")_ must
create some legend for sure (confirmed)
0 so the list of possible commands (I guessed) was

lh = legend ("hide");
lh = legend ("boxon");
lh = legend ("boxoff");
lh = legend ("off");
lh = legend (); % as a simplest possible case
lh = legend ("location","northeast");
lh = legend ("orientation","vertical");


Being tested in Matlab just last two commands created a legend with default
set of labels ("data1", "data2", ...), all the other displayed no legend and
returned [].

@Rik:
So, the first case resulted in hl = [] and no legend displayed and the second
one created legend with default labels.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42034>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]