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: Rik
Subject: [Octave-bug-tracker] [bug #42034] legend () call should not create legend in some cases
Date: Thu, 03 Apr 2014 23:11:42 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

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

I agree with Mike that it is unclear what legend() is supposed to do in this
case.  If you read the documentation for legend it says that when no label is
supplied it should create a label using the sequence "data1", "data2", ...

Can someone try the following example in Matlab


plot (rand (3,3))
hl = legend ()


Octave seems to do the correct thing here in that it builds a legend object
with 3 labels (data1, data2, data3), and then returns the handle.  However,
maybe you are supposed to do


plot (rand (3,3))
hl = legend ('show')


if you want to use default labels on a plot that doesn't have a legend.


    _______________________________________________________

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]