From 6f694e80a11ebace07daac8112a0ad9b5b4dc78b Mon Sep 17 00:00:00 2001 From: "Jens H. Nielsen" Date: Sun, 21 Oct 2012 10:59:50 +0200 Subject: [PATCH] If a table exists add it to default_bbox_extra_artists. This avoids clipping the table if bbox_inches='tight' is used. --- lib/matplotlib/axes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/matplotlib/axes.py b/lib/matplotlib/axes.py index f5c7ba33b146..1ea632225d56 100644 --- a/lib/matplotlib/axes.py +++ b/lib/matplotlib/axes.py @@ -8806,6 +8806,9 @@ def get_default_bbox_extra_artists(self): bbox_extra_artists = [t for t in self.texts if t.get_visible()] if self.legend_: bbox_extra_artists.append(self.legend_) + if self.tables: + for t in self.tables: + bbox_extra_artists.append(t) return bbox_extra_artists