Esempio n. 1
0
 def test_StrCategoryLocator(self):
     locs = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
     ticks = cat.StrCategoryLocator(locs)
     np.testing.assert_array_equal(ticks.tick_values(None, None), locs)
Esempio n. 2
0
 def test_StrCategoryLocator(self):
     locs = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
     unit = cat.UnitData([str(j) for j in locs])
     ticks = cat.StrCategoryLocator(unit._mapping)
     np.testing.assert_array_equal(ticks.tick_values(None, None), locs)
Esempio n. 3
0
 def test_StrCategoryLocator(self):
     ticks = cat.StrCategoryLocator(self.locs)
     np.testing.assert_equal(ticks.tick_values(None, None), self.locs)