from pylab import *
data = []
inf = open('pulse_data.txt')
for line in inf:
    data.append(float(line))
inf.close()
#binning
B = 50
minv = min(data)
maxv = max(data)
bincounts = []
for i in range(B+1):
    bincounts.append(0)
for d in data:
    b = int((d - minv) / (maxv - minv) * B)
    bincounts[b] += 1
# plot histogram

plot(bincounts,'o')
show()


Howto bin series of float values into histogram in Python?
I'm thinking in particular of dictionaries or illuminated bibles being displayed on these stands, which are at least waist-high on a standing person, constructed of wood.  Is there a particular word for this, other than "book stand"?
