def test_FixedLocator_set_params():
 fixed = mticker.FixedLocator(range(0, 24), nbins=5)
 fixed.set_params(nbins=7)
 assert (fixed.nbins == 7)

def test_FixedLocator_set_params ( ) : fixed = mticker . FixedLocator ( range ( 0 , 24 ) , nbins = 5 ) fixed . set_params ( nbins = 7 ) assert ( fixed . nbins == 7 )
create fixed locator with 5 nbins .