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

Skip to content

Commit 616db8f

Browse files
committed
Blacklist nbins
1 parent d73d7bc commit 616db8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/ticker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,12 @@ def __init__(self, steps=None, integer=False, symmetric=False, prune=None):
14971497
self.set_params(steps=steps, integer=integer, symmetric=symmetric,
14981498
prune=prune)
14991499

1500+
def set_params(self, **kwargs):
1501+
if 'nbins' in kwargs:
1502+
raise TypeError(
1503+
"set_params got an unexpected keyword argument 'nbins'")
1504+
return super(AutoSpacedLocator, self).set_params(**kwargs)
1505+
15001506
def __call__(self):
15011507
self._nbins = self.axis.get_tick_space()
15021508
return super(AutoSpacedLocator, self).__call__()

0 commit comments

Comments
 (0)