Skip to content

Commit db271ad

Browse files
committed
Fixes legend.get_children() to actually return the real children of
legend while not including descendents who are children of other objects (what would be grandchildren, great grandchildren, etc.)
1 parent e6f8993 commit db271ad

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/matplotlib/legend.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -754,13 +754,8 @@ def get_children(self):
754754
children = []
755755
if self._legend_box:
756756
children.append(self._legend_box)
757-
children.extend(self.get_lines())
758-
children.extend(self.get_patches())
759-
children.extend(self.get_texts())
760757
children.append(self.get_frame())
761758

762-
if self._legend_title_box:
763-
children.append(self.get_title())
764759
return children
765760

766761
def get_frame(self):

0 commit comments

Comments
 (0)