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: Thu, 03 Apr 2014 08:50:15 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36

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

                 Summary: legend () call should not create legend in some
cases
                 Project: GNU Octave
            Submitted by: nul0m
            Submitted on: Thu 03 Apr 2014 08:50:15 AM GMT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The following case should return [] and not create any legend.


close all;
plot (1:10,sin(1:10));
legh = legend ();
isempty (legh)


According to this <http://www.mathworks.com/help/matlab/ref/legend.html>,
"legend_handle = legend(...) returns the handle to the legend on the current
axes, or [] if no legend exists."

I can confirm that in Matlab it holds for any number of output arguments.




    _______________________________________________________

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]