From db271add43ab3c2969b07763894d59e08308884d Mon Sep 17 00:00:00 2001 From: Cimarron Mittelsteadt Date: Wed, 22 Jan 2014 11:13:14 -0800 Subject: [PATCH] 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.) --- lib/matplotlib/legend.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/matplotlib/legend.py b/lib/matplotlib/legend.py index 07fa8313c086..f199851f21d7 100644 --- a/lib/matplotlib/legend.py +++ b/lib/matplotlib/legend.py @@ -754,13 +754,8 @@ def get_children(self): children = [] if self._legend_box: children.append(self._legend_box) - children.extend(self.get_lines()) - children.extend(self.get_patches()) - children.extend(self.get_texts()) children.append(self.get_frame()) - if self._legend_title_box: - children.append(self.get_title()) return children def get_frame(self):