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

Skip to content

Commit 8424591

Browse files
committed
Expire keyword only deprecations
1 parent 6a566fc commit 8424591

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4388,9 +4388,8 @@ def get_default_bbox_extra_artists(self):
43884388
return [a for a in artists if a.get_visible() and a.get_in_layout()
43894389
and (isinstance(a, noclip) or not a._fully_clipped_to_axes())]
43904390

4391-
@_api.make_keyword_only("3.8", "call_axes_locator")
4392-
def get_tightbbox(self, renderer=None, call_axes_locator=True,
4393-
bbox_extra_artists=None, *, for_layout_only=False):
4391+
def get_tightbbox(self, renderer=None, *, call_axes_locator=True,
4392+
bbox_extra_artists=None, for_layout_only=False):
43944393
"""
43954394
Return the tight bounding box of the Axes, including axis and their
43964395
decorators (xlabel, title, etc).

lib/matplotlib/figure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,8 +1731,7 @@ def get_default_bbox_extra_artists(self):
17311731
bbox_artists.extend(ax.get_default_bbox_extra_artists())
17321732
return bbox_artists
17331733

1734-
@_api.make_keyword_only("3.8", "bbox_extra_artists")
1735-
def get_tightbbox(self, renderer=None, bbox_extra_artists=None):
1734+
def get_tightbbox(self, renderer=None, *, bbox_extra_artists=None):
17361735
"""
17371736
Return a (tight) bounding box of the figure *in inches*.
17381737

lib/mpl_toolkits/axes_grid1/parasite_axes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ def _remove_any_twin(self, ax):
215215
self.axis[tuple(restore)].set_visible(True)
216216
self.axis[tuple(restore)].toggle(ticklabels=False, label=False)
217217

218-
@_api.make_keyword_only("3.8", "call_axes_locator")
219-
def get_tightbbox(self, renderer=None, call_axes_locator=True,
218+
def get_tightbbox(self, renderer=None, *, call_axes_locator=True,
220219
bbox_extra_artists=None):
221220
bbs = [
222221
*[ax.get_tightbbox(renderer, call_axes_locator=call_axes_locator)

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3555,9 +3555,8 @@ def _digout_minmax(err_arr, coord_label):
35553555

35563556
return errlines, caplines, limmarks
35573557

3558-
@_api.make_keyword_only("3.8", "call_axes_locator")
3559-
def get_tightbbox(self, renderer=None, call_axes_locator=True,
3560-
bbox_extra_artists=None, *, for_layout_only=False):
3558+
def get_tightbbox(self, renderer=None, *, call_axes_locator=True,
3559+
bbox_extra_artists=None, for_layout_only=False):
35613560
ret = super().get_tightbbox(renderer,
35623561
call_axes_locator=call_axes_locator,
35633562
bbox_extra_artists=bbox_extra_artists,

0 commit comments

Comments
 (0)