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

Skip to content

Commit 4cc3313

Browse files
committed
Bugfix
1 parent 62d32ba commit 4cc3313

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/ticker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,9 @@ def __init__(self, *args, **kwargs):
13851385
def set_params(self, **kwargs):
13861386
"""Set parameters within this locator."""
13871387
if 'nbins' in kwargs:
1388-
self._nbins = int(kwargs['nbins'])
1388+
self._nbins = kwargs['nbins']
1389+
if self._nbins != 'auto':
1390+
self._nbins = int(self._nbins)
13891391
if 'trim' in kwargs:
13901392
self._trim = kwargs['trim']
13911393
if 'integer' in kwargs:

0 commit comments

Comments
 (0)