def test_LogLocator_set_params():
 loc = mticker.LogLocator()
 loc.set_params(numticks=7, numdecs=8, subs=[2.0], base=4)
 assert (loc.numticks == 7)
 assert (loc.numdecs == 8)
 assert (loc._base == 4)
 assert (list(loc._subs) == [2.0])

def test_LogLocator_set_params ( ) : loc = mticker . LogLocator ( ) loc . set_params ( numticks = 7 , numdecs = 8 , subs = [ 2.0 ] , base = 4 ) assert ( loc . numticks == 7 ) assert ( loc . numdecs == 8 ) assert ( loc . _base == 4 ) assert ( list ( loc . _subs ) == [ 2.0 ] )
create log locator with default value .