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

Skip to content

Commit 740fc3d

Browse files
committed
Remove more Axis API deprecated in 3.3.
1 parent 197180b commit 740fc3d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/api/next_api_changes/removals/20447-ES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ orientations ("horizontal" and "vertical") are now case-sensitive.
5353
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5454
These attributes have been removed in favor of ``ContourSet.axes`` and
5555
``Quiver.axes``, for consistency with other artists.
56+
57+
*fontdict* and *minor* parameters of `.Axes.set_xticklabels` / `.Axes.set_yticklabels` are now keyword-only
58+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

lib/matplotlib/axis.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,8 +1287,7 @@ def get_minorticklocs(self):
12871287
if ~np.isclose(tr_loc, tr_major_locs, atol=tol, rtol=0).any()]
12881288
return minor_locs
12891289

1290-
@_api.make_keyword_only("3.3", "minor")
1291-
def get_ticklocs(self, minor=False):
1290+
def get_ticklocs(self, *, minor=False):
12921291
"""Return this Axis' tick locations in data coordinates."""
12931292
return self.get_minorticklocs() if minor else self.get_majorticklocs()
12941293

@@ -1755,8 +1754,7 @@ def set_ticklabels(self, ticklabels, *, minor=False, **kwargs):
17551754

17561755
# Wrapper around set_ticklabels used to generate Axes.set_x/ytickabels; can
17571756
# go away once the API of Axes.set_x/yticklabels becomes consistent.
1758-
@_api.make_keyword_only("3.3", "fontdict")
1759-
def _set_ticklabels(self, labels, fontdict=None, minor=False, **kwargs):
1757+
def _set_ticklabels(self, labels, *, fontdict=None, minor=False, **kwargs):
17601758
"""
17611759
Set this Axis' labels with list of string labels.
17621760

0 commit comments

Comments
 (0)