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))
Esempio n. 2
0
 def test_dataLimits_drawNull_ymin_positive_missing_data(self):
     config = [
         list(range(10, 101)),
         list(range(10, 101)), [1, None, None, None, None]
     ]
     seriesList = self._generate_series_list(config)
     self.assertEqual(glyph.dataLimits(seriesList, True, False), (0.0, 100))
Esempio n. 3
0
 def test_dataLimits_defaults_ymin_positive(self):
     config = [
         list(range(10, 101)),
         list(range(10, 101)), [1, None, None, None, None]
     ]
     seriesList = self._generate_series_list(config)
     self.assertEqual(glyph.dataLimits(seriesList), (1, 100))
Esempio n. 4
0
 def test_dataLimits_drawNull_stacked_no_missing(self):
     config = [
         list(range(10, 101)),
         list(range(10, 101)),
         list(range(100, 300))
     ]
     seriesList = self._generate_series_list(config)
     self.assertEqual(glyph.dataLimits(seriesList, True, True), (10, 390))
 def test_dataLimits_drawNull_stacked(self):
     seriesList = self._generate_series_list()
     self.assertEqual(glyph.dataLimits(seriesList, True, True), (0, 8))
 def test_dataLimits_drawNull(self):
     seriesList = self._generate_series_list()
     self.assertEqual(glyph.dataLimits(seriesList, True, False), (0, 100))
 def test_dataLimits_empty_list(self):
     self.assertEqual(glyph.dataLimits([]), (0.0, 1.0))
 def test_dataLimits_defaults(self):
     seriesList = self._generate_series_list()
     self.assertEqual(glyph.dataLimits(seriesList), (0, 100))
 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))
Esempio n. 10
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))
Esempio n. 11
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))
Esempio n. 12
0
 def test_dataLimits_drawNull_stacked(self):
     seriesList = self._generate_series_list()
     self.assertEqual(glyph.dataLimits(seriesList, True, True), (0, 8))
Esempio n. 13
0
 def test_dataLimits_drawNull(self):
     seriesList = self._generate_series_list()
     self.assertEqual(glyph.dataLimits(seriesList, True, False), (0,100))
Esempio n. 14
0
 def test_dataLimits_empty_list(self):
     self.assertEqual(glyph.dataLimits([]), (0.0, 1.0))
Esempio n. 15
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))
Esempio n. 16
0
 def test_dataLimits_defaults(self):
     seriesList = self._generate_series_list()
     self.assertEqual(glyph.dataLimits(seriesList), (0,100))