Mercurial > octave-nkf
diff scripts/plot/appearance/__getlegenddata__.m @ 18678:8c0646dd9e5a
legend.m: Fix bug updating plotyy figures (bug #41970).
* legend.m (updatelegend): Restore "units" property to potentially
multiple axes. When re-invoking legend, use just the first handle
of any handle list.
* __getlegenddata__.m: Fix cut and paste error where get called with
wrong set of axes.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 08 Apr 2014 21:13:06 -0700 |
parents | d63878346099 |
children | 0f9c5a15c8fa |
line wrap: on
line diff
--- a/scripts/plot/appearance/__getlegenddata__.m Tue Apr 08 20:13:38 2014 -0700 +++ b/scripts/plot/appearance/__getlegenddata__.m Tue Apr 08 21:13:06 2014 -0700 @@ -29,7 +29,7 @@ if (numel (ca) == 1) kids = get (ca, "children"); else - kids = [get(kids, "children"){:}]; + kids = [get(ca, "children"){:}]; endif for i = numel (kids):-1:1