On Wed, Nov 30, 2011 at 11:42 AM, Jeffrey Blackburne <
jblackbu...@alum.mit.edu> wrote:
> Hi Steven,
>
> Try this:
>
> import numpy as np
> import numpy.random
> import matplotlib as mpl
> import matplotlib.pyplot as plt
>
> x = np.random.randn(1000)
> h, binedg = np.histogram(x, 10)
>
> wid = bin
Hi Steven,
Try this:
import numpy as np
import numpy.random
import matplotlib as mpl
import matplotlib.pyplot as plt
x = np.random.randn(1000)
h, binedg = np.histogram(x, 10)
wid = binedg[1:] - binedg[:-1]
plt.bar(binedg[:-1], h/float(x.size), width=wid)
On Nov 30, 2011, at 10:25 AM, Steven B