Mercurial > octave
changeset 27713:e297d20e2d4f
legend.m: fix regression with plotyy item order (bug #50497)
* legend.m (parse_opts): fix order of children.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Mon, 18 Nov 2019 23:50:25 +0100 |
parents | f8fae6e5d636 |
children | a984e6722601 |
files | scripts/plot/appearance/legend.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m Mon Nov 18 22:16:15 2019 +0100 +++ b/scripts/plot/appearance/legend.m Mon Nov 18 23:50:25 2019 +0100 @@ -649,8 +649,8 @@ if (isscalar (axes_handles)) obj_handles = flipud (get (axes_handles, "children")(:)); else - obj_handles = vertcat (flipud (get (flipud (axes_handles(:)), ... - "children")){:}); + tmp = get (axes_handles(:), "children"); + obj_handles = [flipud(tmp{1}); flipud(tmp{2})]; endif if (isempty (obj_handles))