Skip to content

Commit db0fbd4

Browse files
committed
Merge pull request #2755 from cimarronm/legend_children_fix
Fixes legend.get_children() to actually return the real children of
2 parents c154b90 + db271ad commit db0fbd4

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
@@ -750,13 +750,8 @@ def get_children(self):
750750
children = []
751751
if self._legend_box:
752752
children.append(self._legend_box)
753-
children.extend(self.get_lines())
754-
children.extend(self.get_patches())
755-
children.extend(self.get_texts())
756753
children.append(self.get_frame())
757754

758-
if self._legend_title_box:
759-
children.append(self.get_title())
760755
return children
761756

762757
def get_frame(self):

0 commit comments

Comments
 (0)