Skip to content

Commit 585c3e3

Browse files
committed
If a table exists add it to default_bbox_extra_artists. This avoids clipping the
table if bbox_inches='tight' is used.
1 parent 45fa53d commit 585c3e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/axes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8806,6 +8806,9 @@ def get_default_bbox_extra_artists(self):
88068806
bbox_extra_artists = [t for t in self.texts if t.get_visible()]
88078807
if self.legend_:
88088808
bbox_extra_artists.append(self.legend_)
8809+
if self.tables:
8810+
for t in self.tables:
8811+
bbox_extra_artists.append(t)
88098812
return bbox_extra_artists
88108813

88118814

0 commit comments

Comments
 (0)