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 5b16906

Browse filesBrowse files
committed
Be explicit about kwargs
1 parent 7a9a596 commit 5b16906
Copy full SHA for 5b16906

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-5
lines changed

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ class AutoSpacedLocator(MaxNLocator):
14771477
Behaves like a MaxNLocator, except N is automatically determined
14781478
from the length of the axis.
14791479
"""
1480-
def __init__(self, *args, **kwargs):
1480+
def __init__(self, steps=None, integer=False, symmetric=False, prune=None):
14811481
"""
14821482
Keyword args:
14831483
@@ -1503,11 +1503,9 @@ def __init__(self, *args, **kwargs):
15031503
will be removed. If prune==None, no ticks will be removed.
15041504
15051505
"""
1506-
if 'nbins' in kwargs:
1507-
raise ValueError(
1508-
'AutoSpacedLocator does not take nbins as an argument')
15091506
self.set_params(**self.default_params)
1510-
self.set_params(**kwargs)
1507+
self.set_params(steps=steps, integer=integer, symmetric=symmetric,
1508+
prune=prune)
15111509

15121510
def __call__(self):
15131511
self._nbins = self.axis.get_tick_space()

0 commit comments

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