[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57303] legend() fails if parent of axes is no
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #57303] legend() fails if parent of axes is not a figure |
Date: |
Tue, 26 Nov 2019 08:02:47 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Update of bug #57303 (project octave):
Status: None => Need Info
_______________________________________________________
Follow-up Comment #1:
In the development branch (which you have marked as the release), the legend
function has been completely rewritten, and you example didn't work (the
legend was created under the figure, not the panel). I pushed the following
cset which fixes the issue for me:
http://hg.savannah.gnu.org/hgweb/octave/rev/7ae72862b542
What release are you actually using. Your example doesn't throw an error in
5.1.
I used the following code for testing:
clf;
hp = uipanel ();
hax = axes ("parent", hp);
contourf (hax, rand (5));
legend ()
set (gcf, "colormap", copper())
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57303>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/