Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 77d965d

Browse filesBrowse files
committed
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.
1 parent 585c3e3 commit 77d965d
Copy full SHA for 77d965d

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎lib/matplotlib/table.py

Copy file name to clipboardExpand all lines: lib/matplotlib/table.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ def get_children(self):
279279

280280
def get_window_extent(self, renderer):
281281
'Return the bounding box of the table in window coords'
282-
boxes = [c.get_window_extent(renderer) for c in self._cells]
282+
boxes = [cell.get_window_extent(renderer)
283+
for cell in self._cells.values()]
284+
283285
return Bbox.union(boxes)
284286

285287
def _do_cell_alignment(self):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.