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 6acd1ce

Browse filesBrowse files
committed
Turn fontdict & minor into kwonly parameters for set_{x,y}ticklabels.
This is consistent with the general trend of making "minor" a kwonly param, and will help in making set_{x,y}ticklabels just a thin wrapper around Axis.set_ticklabels.
1 parent c080824 commit 6acd1ce
Copy full SHA for 6acd1ce

File tree

Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed

‎doc/api/next_api_changes/deprecations.rst

Copy file name to clipboardExpand all lines: doc/api/next_api_changes/deprecations.rst
+3Lines 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

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