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

Skip to content

Commit ea6b224

Browse files
authored
Merge pull request #16904 from anntzer/ticklabels-kwo
Turn fontdict & minor into kwonly parameters for set_{x,y}ticklabels.
2 parents ee2b9f1 + 6acd1ce commit ea6b224

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/api/next_api_changes/deprecations.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,6 @@ This method is deprecated. Use the ``GridSpec.nrows``, ``GridSpec.ncols``,
395395
Qt4-based backends
396396
~~~~~~~~~~~~~~~~~~
397397
The qt4agg and qt4cairo backends are deprecated.
398+
399+
*fontdict* and *minor* parameters of `.Axes.set_xticklabels` and `.Axes.set_yticklabels` will become keyword-only
400+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3422,6 +3422,7 @@ def get_xticklabels(self, minor=False, which=None):
34223422
"""
34233423
return self.xaxis.get_ticklabels(minor=minor, which=which)
34243424

3425+
@cbook._make_keyword_only("3.3", "fontdict")
34253426
def set_xticklabels(self, labels, fontdict=None, minor=False, **kwargs):
34263427
"""
34273428
Set the x-tick labels with list of string labels.
@@ -3815,6 +3816,7 @@ def get_yticklabels(self, minor=False, which=None):
38153816
"""
38163817
return self.yaxis.get_ticklabels(minor=minor, which=which)
38173818

3819+
@cbook._make_keyword_only("3.3", "fontdict")
38183820
def set_yticklabels(self, labels, fontdict=None, minor=False, **kwargs):
38193821
"""
38203822
Set the y-tick labels with list of string labels.

0 commit comments

Comments
 (0)