def plot(data):
    """
    Histogram data to stdout
    """
largest = max(data)
scale = 50.0 / largest
for i, datum in enumerate(data):
    bar = '*' * int(datum * scale)
Histogram without plotting function