From 0027451bb767545c085cdfccebcc23a9b8ecdc96 Mon Sep 17 00:00:00 2001 From: Damon McDougall Date: Wed, 17 Oct 2012 14:48:30 +0100 Subject: [PATCH] Make table.py use BBox.union over bbox_all --- lib/matplotlib/table.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/table.py b/lib/matplotlib/table.py index 0a5748863623..9ae70c1c6fe4 100644 --- a/lib/matplotlib/table.py +++ b/lib/matplotlib/table.py @@ -267,8 +267,7 @@ def contains(self, mouseevent): boxes = [self._cells[pos].get_window_extent(self._cachedRenderer) for pos in self._cells.iterkeys() if pos[0] >= 0 and pos[1] >= 0] - # FIXME bbox_all is not defined. - bbox = bbox_all(boxes) + bbox = Bbox.union(boxes) return bbox.contains(mouseevent.x, mouseevent.y), {} else: return False, {} @@ -281,8 +280,7 @@ 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] - # FIXME bbox_all is not defined - return bbox_all(boxes) + return Bbox.union(boxes) def _do_cell_alignment(self): """ Calculate row heights and column widths.