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 1ebf103

Browse filesBrowse files
committed
numticks kwonly, doc removal of set_label
1 parent 8aafa3a commit 1ebf103
Copy full SHA for 1ebf103

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎doc/api/next_api_changes/removals/28183-OG.rst

Copy file name to clipboardExpand all lines: doc/api/next_api_changes/removals/28183-OG.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
``Tick.set_label1`` and ``Tick.set_label2``
2-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1+
``Tick.set_label``, ``Tick.set_label1`` and ``Tick.set_label2``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
... are removed. Calling these methods from third-party code usually had no
44
effect, as the labels are overwritten at draw time by the tick formatter.
55

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,7 @@ class LogLocator(Locator):
22752275
Places ticks at the values ``subs[j] * base**i``.
22762276
"""
22772277

2278-
def __init__(self, base=10.0, subs=(1.0,), numticks=None):
2278+
def __init__(self, base=10.0, subs=(1.0,), *, numticks=None):
22792279
"""
22802280
Parameters
22812281
----------
@@ -2306,7 +2306,7 @@ def __init__(self, base=10.0, subs=(1.0,), numticks=None):
23062306
self._set_subs(subs)
23072307
self.numticks = numticks
23082308

2309-
def set_params(self, base=None, subs=None, numticks=None):
2309+
def set_params(self, base=None, subs=None, *, numticks=None):
23102310
"""Set parameters within this locator."""
23112311
if base is not None:
23122312
self._base = float(base)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.