Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

histogram_demo Namespace Reference

Detailed Description

Make a histogram of normally distributed random numbers and plot the
analytic PDF over it


tuple ax = fig.add_subplot(111)
float bincenters = 0.5
tuple fig = plt.figure()
tuple l = ax.plot(bincenters, y, 'r--', linewidth=1)
tuple x = mu+sigma*np.random.randn(10000)
tuple y = mlab.normpdf( bincenters, mu, sigma)

Generated by  Doxygen 1.6.0   Back to index