def test_plot_scatter_data_empty(self):
     """_plot_scatter_data() should not error when given empty list of data,
     but should not plot anything."""
     fig, ax = _create_plot()
     result = _plot_scatter_data(ax, [], '^', 0.77, 1, 1.5, 'stdv')
     self.assertTrue(result is None)
Exemple #2
0
 def test_plot_scatter_data_empty(self):
     """_plot_scatter_data() should not error when given empty list of data,
     but should not plot anything."""
     fig, ax = _create_plot()
     result = _plot_scatter_data(ax, [], '^', 0.77, 1, 1.5, 'stdv')
     self.assertTrue(result is None)
 def test_plot_scatter_data(self):
     """_plot_scatter_data() should return a Collection instance."""
     fig, ax = _create_plot()
     result = _plot_scatter_data(ax, [1, 2, 3], '^', 0.77, 1, 1.5, 'stdv')
     self.assertFloatEqual(result.get_sizes(), 20)
Exemple #4
0
 def test_plot_scatter_data(self):
     """_plot_scatter_data() should return a Collection instance."""
     fig, ax = _create_plot()
     result = _plot_scatter_data(ax, [1, 2, 3], '^', 0.77, 1, 1.5, 'stdv')
     self.assertFloatEqual(result.get_sizes(), 20)