diff --git a/lib/matplotlib/table.py b/lib/matplotlib/table.py index 9ae70c1c6fe4..aabec96fc8dd 100644 --- a/lib/matplotlib/table.py +++ b/lib/matplotlib/table.py @@ -279,7 +279,8 @@ 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 = [self._cells[c].get_window_extent(renderer) + for c in self._cells.keys()] return Bbox.union(boxes) def _do_cell_alignment(self):