changeset 17677:c14e5af64de4

legend.m: Fix invalid legend handle with plotyy (bug #35321). * scripts/plot/appearance/legend.m: Correctly get axes children when there are more than one axes (as is the case for plotyy).
author Rik <rik@octave.org>
date Thu, 17 Oct 2013 13:19:38 -0700
parents c060ad097056
children 26bd7d18a50c
files scripts/plot/appearance/legend.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m	Thu Oct 17 20:29:17 2013 +0200
+++ b/scripts/plot/appearance/legend.m	Thu Oct 17 13:19:38 2013 -0700
@@ -160,7 +160,7 @@
     if (isscalar (kids))
       kids = get (kids, "children")(:);
     else
-      kids = flipud ([get(kids, "children"){:}](:));
+      kids = flipud (vertcat (get (kids, "children"){:}));
     endif
   endif
   nargs = numel (varargin);