def test_LinearLocator_set_params():
 loc = mticker.LinearLocator(numticks=2)
 loc.set_params(numticks=8, presets={(0, 1): []})
 assert (loc.numticks == 8)
 assert (loc.presets == {(0, 1): []})

def test_LinearLocator_set_params ( ) : loc = mticker . LinearLocator ( numticks = 2 ) loc . set_params ( numticks = 8 , presets = { ( 0 , 1 ) : [ ] } ) assert ( loc . numticks == 8 ) assert ( loc . presets == { ( 0 , 1 ) : [ ] } )
create linear locator with presets={} .