Mercurial > octave
changeset 31333:927c8d7bd8f3 stable
legend.m: fix error with contour plot containing clabels (bug #63262)
* legend.m (create_item): Remove text objects from the list of children to
consider for shaping the legend icon.
(grafted from 472df5147221f1bd304aefda0e9f84e44873bf2e)
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sun, 23 Oct 2022 23:06:35 +0200 |
parents | b01e8e322838 |
children | 01591d17cc77 c94baad7be99 |
files | scripts/plot/appearance/legend.m |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m Mon Oct 17 09:27:37 2022 +0200 +++ b/scripts/plot/appearance/legend.m Sun Oct 23 23:06:35 2022 +0200 @@ -1042,6 +1042,8 @@ typ = creator; switch (creator) case "__contour__" + ## Eliminate eventual text objects created by clabel + kids(strcmp (get (kids, "type"), "text")) = []; hplt = [kids(end), kids(1)]; case {"__errplot__", "__quiver__", "__stem__"} hplt = kids(2:-1:1);