Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I use matplotlib for that purpose. Have a look at the first example on the page

http://matplotlib.sourceforge.net/examples/pylab_examples/histogram_demo_extended.html

I use matplotlib for that purpose. Have a look at the first example on the page

http://matplotlib.sourceforge.net/examples/pylab_examples/histogram_demo_extended.html

Edit: To get a list use

import numpy as np
import pylab as P


mu, sigma = 200, 25
x = mu + sigma*P.randn(10000)


n, bins, patches = P.hist(x, 50, normed=1, histtype='stepfilled')
P.setp(patches, 'facecolor', 'g', 'alpha', 0.75)


y = P.normpdf( bins, mu, sigma)
l = P.plot(bins, y, 'k--', linewidth=1.5)
print bins