changeset 33026:b36f682052d9

maint: merge stable to default
author Rik <rik@octave.org>
date Thu, 15 Feb 2024 10:10:02 -0800
parents 92a2e883af17 (current diff) 9cb993582499 (diff)
children 489026b7257b
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/hdl2struct.m	Wed Feb 14 15:07:28 2024 +0100
+++ b/scripts/plot/util/hdl2struct.m	Thu Feb 15 10:10:02 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