def test_draw_histogram_in_fhand(self): values = [1, 2, 3, 1, 2, 3, 2, 3, 2, 3, 2, 1, 4] fhand = NamedTemporaryFile(suffix='.png') counter = IntCounter(values) distrib = counter.calculate_distribution() draw_histogram_in_fhand(distrib['counts'], distrib['bin_limits'], fhand=fhand)
def test_draw_histogram_in_fhand(self): values = [1, 2, 3, 1, 2, 3, 2, 3, 2, 3, 2, 1, 4] fhand = NamedTemporaryFile(suffix='.png') counter = IntCounter(values) draw_histogram_in_fhand(counter, fhand=fhand)