From f850d8331c8ad43eb9f35f2156adeac1242f43b2 Mon Sep 17 00:00:00 2001 From: "Jens H. Nielsen" Date: Sat, 20 Oct 2012 18:45:07 +0200 Subject: [PATCH] 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. --- lib/matplotlib/table.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):