histogram relative frequency

39

# assuming that mydata is an numpy array
 ax.hist(mydata, weights=np.zeros_like(mydata) + 1. / mydata.size)

Comments

Submit
0 Comments