Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8424591

Browse filesBrowse files
committed
Expire keyword only deprecations
1 parent 6a566fc commit 8424591
Copy full SHA for 8424591

File tree

Expand file treeCollapse file tree

4 files changed

+6
-10
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+6
-10
lines changed

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
+2-3Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
+1-2Lines 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

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/axes_grid1/parasite_axes.py
+1-2Lines 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

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/axes3d.py
+2-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.