Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0082cf

Browse files
committed
FIX: allow non bbox_extra_artists calls
1 parent b2a790d commit c0082cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2303,7 +2303,7 @@ def get_tightbbox(self, renderer, bbox_extra_artists=None):
23032303
bbox_extra_artists=bbox_extra_artists)
23042304
except TypeError:
23052305
bbox = ax.get_tightbbox(renderer)
2306-
bb.extend([bbox])
2306+
bb.append(bbox)
23072307

23082308

23092309
if len(bb) == 0:

lib/mpl_toolkits/axes_grid1/axes_size.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def __init__(self, ax, direction):
303303
self._ax_list = [ax] if isinstance(ax, Axes) else ax
304304
self._direction = direction
305305

306-
def __call__(self, renderer):
306+
def __call__(self, renderer, bbox_extra_artists=None):
307307
get_func = self._get_func_map[self._direction]
308308
vl = [get_func(ax.get_tightbbox(renderer, call_axes_locator=False),
309309
ax.bbox)

0 commit comments

Comments
 (0)