Exemple #1
0
 def test_dataLimits_drawNull_ymax_negative_missing_data(self):
     config = [
         range(-10, -101),
         range(-10, -101), [-50, None, None, None, None]
     ]
     seriesList = self._generate_series_list(config)
     self.assertEqual(glyph.dataLimits(seriesList, True, False), (-50, 0.0))
Exemple #2
0
 def test_dataLimits_drawNull_stacked_no_missing(self):
     config = [range(10, 101), range(10, 101), range(100, 300)]
     seriesList = self._generate_series_list(config)
     self.assertEqual(glyph.dataLimits(seriesList, True, True), (10, 390))
Exemple #3
0
 def test_dataLimits_drawNull_ymin_positive_missing_data(self):
     config = [range(10, 101), range(10, 101), [1, None, None, None, None]]
     seriesList = self._generate_series_list(config)
     self.assertEqual(glyph.dataLimits(seriesList, True, False), (0.0, 100))
Exemple #4
0
 def test_dataLimits_drawNull_stacked(self):
     seriesList = self._generate_series_list()
     self.assertEqual(glyph.dataLimits(seriesList, True, True), (0, 8))
Exemple #5
0
 def test_dataLimits_drawNull(self):
     seriesList = self._generate_series_list()
     self.assertEqual(glyph.dataLimits(seriesList, True, False), (0, 100))
Exemple #6
0
 def test_dataLimits_empty_list(self):
     self.assertEqual(glyph.dataLimits([]), (0.0, 1.0))
Exemple #7
0
 def test_dataLimits_defaults_ymin_positive(self):
     config = [range(10, 101), range(10, 101), [1, None, None, None, None]]
     seriesList = self._generate_series_list(config)
     self.assertEqual(glyph.dataLimits(seriesList), (1, 100))
Exemple #8
0
 def test_dataLimits_defaults(self):
     seriesList = self._generate_series_list()
     self.assertEqual(glyph.dataLimits(seriesList), (0, 100))