Skip to content

Commit

Permalink
hdl2struct.m: Fix missing legend markers (bug #65904)
Browse files Browse the repository at this point in the history
* hdl2struct.m: When processing "legend" axes objects, specifically add hidden
children with "markertruesize" property to list of children to save.
  • Loading branch information
Rik committed Nov 26, 2024
1 parent d1edd0b commit cf4f5f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/plot/util/hdl2struct.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
## Check for polar plots with special "polar_grid" object
## FIXME: A hack to fix bug #62093.
kids = [kids; findall(h, "tag", "polar_grid")];

## Add legend markers which are normally hidden
if (strcmp (s.properties.tag, "legend"))
kids = [kids; findall(h, "-depth", 1, "type", "line", "-property", "markertruesize")];
endif
endif

nkids = length (kids);
Expand Down

0 comments on commit cf4f5f8

Please sign in to comment.