File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Original file line number Diff line number Diff line change @@ -1477,7 +1477,7 @@ class AutoSpacedLocator(MaxNLocator):
1477
1477
Behaves like a MaxNLocator, except N is automatically determined
1478
1478
from the length of the axis.
1479
1479
"""
1480
- def __init__ (self , * args , ** kwargs ):
1480
+ def __init__ (self , steps = None , integer = False , symmetric = False , prune = None ):
1481
1481
"""
1482
1482
Keyword args:
1483
1483
@@ -1503,11 +1503,9 @@ def __init__(self, *args, **kwargs):
1503
1503
will be removed. If prune==None, no ticks will be removed.
1504
1504
1505
1505
"""
1506
- if 'nbins' in kwargs :
1507
- raise ValueError (
1508
- 'AutoSpacedLocator does not take nbins as an argument' )
1509
1506
self .set_params (** self .default_params )
1510
- self .set_params (** kwargs )
1507
+ self .set_params (steps = steps , integer = integer , symmetric = symmetric ,
1508
+ prune = prune )
1511
1509
1512
1510
def __call__ (self ):
1513
1511
self ._nbins = self .axis .get_tick_space ()
You can’t perform that action at this time.
0 commit comments