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

Skip to content

Commit 243d03a

Browse files
committed
Expire keyword only deprecations
1 parent 8ecee40 commit 243d03a

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
@@ -4420,9 +4420,8 @@ def get_default_bbox_extra_artists(self):
44204420
return [a for a in artists if a.get_visible() and a.get_in_layout()
44214421
and (isinstance(a, noclip) or not a._fully_clipped_to_axes())]
44224422

4423-
@_api.make_keyword_only("3.8", "call_axes_locator")
4424-
def get_tightbbox(self, renderer=None, call_axes_locator=True,
4425-
bbox_extra_artists=None, *, for_layout_only=False):
4423+
def get_tightbbox(self, renderer=None, *, call_axes_locator=True,
4424+
bbox_extra_artists=None, for_layout_only=False):
44264425
"""
44274426
Return the tight bounding box of the Axes, including axis and their
44284427
decorators (xlabel, title, etc).

lib/matplotlib/figure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,8 +1800,7 @@ def get_default_bbox_extra_artists(self):
18001800
bbox_artists.extend(ax.get_default_bbox_extra_artists())
18011801
return bbox_artists
18021802

1803-
@_api.make_keyword_only("3.8", "bbox_extra_artists")
1804-
def get_tightbbox(self, renderer=None, bbox_extra_artists=None):
1803+
def get_tightbbox(self, renderer=None, *, bbox_extra_artists=None):
18051804
"""
18061805
Return a (tight) bounding box of the figure *in inches*.
18071806

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
@@ -3757,9 +3757,8 @@ def _digout_minmax(err_arr, coord_label):
37573757

37583758
return errlines, caplines, limmarks
37593759

3760-
@_api.make_keyword_only("3.8", "call_axes_locator")
3761-
def get_tightbbox(self, renderer=None, call_axes_locator=True,
3762-
bbox_extra_artists=None, *, for_layout_only=False):
3760+
def get_tightbbox(self, renderer=None, *, call_axes_locator=True,
3761+
bbox_extra_artists=None, for_layout_only=False):
37633762
ret = super().get_tightbbox(renderer,
37643763
call_axes_locator=call_axes_locator,
37653764
bbox_extra_artists=bbox_extra_artists,

0 commit comments

Comments
 (0)