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

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

[Octave-bug-tracker] [bug #58436] legend (leg_handle, "boxoff") no longe


From: Rik
Subject: [Octave-bug-tracker] [bug #58436] legend (leg_handle, "boxoff") no longer works
Date: Sat, 23 May 2020 22:34:31 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0

URL:
  <https://savannah.gnu.org/bugs/?58436>

                 Summary: legend (leg_handle, "boxoff") no longer works
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Sat 23 May 2020 07:34:29 PM PDT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.0.90
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

In Octave 5.2 it is possible for the first argument to be a handle to an
existing legend object.  The second argument can then be other legend actions
such as "boxoff" or "hide".

This no longer works on the stable branch.  The error is obscure


error: legend: objects of type "axes" can't be labeled
error: called from
    legend>parse_opts at line 661 column 7
    legend at line 134 column 8
    tst_leg at line 7 column 1


, but apparently it is because the new code is only looking for an axes handle
in the first position.

Test code which is also attached as tst_leg.m is:


graphics_toolkit qt

hf = figure ();
hax1 = axes;
plot (hax1, 1:10, 'o-b');
hl1 = legend ("axes1 legend");
legend (hl1, 'boxoff')






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 23 May 2020 07:34:29 PM PDT  Name: tst_leg.m  Size: 131B   By: rik5

<http://savannah.gnu.org/bugs/download.php?file_id=49157>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58436>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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