8000 Rebase of #1418 on v1.2.x by jenshnielsen · Pull Request #1425 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Rebase of #1418 on v1.2.x #1425

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
Oct 23, 2012
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
Tables: Fix get_window_extent for table to allow table to be added to…
… bbox_extra_artists.

The get_window_extent is a method on the cells not the key of the cells.
  • Loading branch information
jenshnielsen committed Oct 22, 2012
commit 1a562214788489bfadd2eb2df9c8e6c60f21ea39
4 changes: 3 additions & 1 deletion lib/matplotlib/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ def get_children(self):

def get_window_extent(self, renderer):
'Return the bounding box of the table in window coords'
boxes = [c.get_window_extent(renderer) for c in self._cells]
boxes = [cell.get_window_extent(renderer)
for cell in self._cells.values()]

return Bbox.union(boxes)

def _do_cell_alignment(self):
Expand Down
0