Mercurial > octave
changeset 33025:9cb993582499 stable
hdl2struct.m: Fix saving of legend and colorbar objects (bug #65315)
* hdl2struct.m: Change check for axes to include axes with "tag" property set,
as long as that tag is not "legend" or "colorbar" indicating a special object.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 15 Feb 2024 10:09:45 -0800 |
parents | 4239095e41c1 |
children | b36f682052d9 0b8f3470d1fb |
files | scripts/plot/util/hdl2struct.m |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/hdl2struct.m Wed Feb 14 14:45:36 2024 +0100 +++ b/scripts/plot/util/hdl2struct.m Thu Feb 15 10:09:45 2024 -0800 @@ -86,7 +86,8 @@ nsp -= 1; endwhile - if (strcmp (s.type, "axes") && isempty (get (h, "tag"))) + if (strcmp (s.type, "axes") ... + && ! any (strcmp (get (h, "tag"), {'colorbar', 'legend'}))) ## look for legends and colorbars among axes brothers and add them ## to the children list try