I would like to make a histogram with binned data with Python, but I didn't figure out how to make one. I didn't find any documentation (or I Googled wrong), but I've tried this:
import pylab as plb
a = [1, 2, 3, 4, 5, 6] # my histogram bins
b = [1, 4, 6, 1, 3, 7] # my data
plb.hist(b, bins = a)
plb.show()
and related alternatives, and of course it doesn't work.