10000 Fixes legend.get_children() to actually return the real children of by cimarronm · Pull Request #2755 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fixes legend.get_children() to actually return the real children of #2755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.)
  • Loading branch information
cimarronm committed Jan 22, 2014
commit db271add43ab3c2969b07763894d59e08308884d
5 changes: 0 additions & 5 deletions lib/matplotlib/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
0