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

Skip to content

Commit b2a790d

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/mpl_toolkits/axes_grid1/parasite_axes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,11 +326,13 @@ def _remove_method(h):
326326

327327
return ax2
328328

329-
def get_tightbbox(self, renderer, call_axes_locator=True):
329+
def get_tightbbox(self, renderer, call_axes_locator=True,
330+
bbox_extra_artists=None):
330331
bbs = [ax.get_tightbbox(renderer, call_axes_locator=call_axes_locator)
331332
for ax in self.parasites]
332333
bbs.append(super().get_tightbbox(renderer,
333-
call_axes_locator=call_axes_locator))
334+
call_axes_locator=call_axes_locator,
335+
bbox_extra_artists=bbox_extra_artists))
334336
return Bbox.union([b for b in bbs if b.width != 0 or b.height != 0])
335337

336338

0 commit comments

Comments
 (0)