diff --git a/lib/matplotlib/table.py b/lib/matplotlib/table.py index 9ae70c1c6fe4..b0036bc953c5 100644 --- a/lib/matplotlib/table.py +++ b/lib/matplotlib/table.py @@ -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):