plt.hist 画正态分布图

https://www.cnblogs.com/python-life/articles/6084059.htmlhtml

https://matplotlib.org/api/_as_gen/matplotlib.pyplot.hist.html#matplotlib.pyplot.histpython

Plot a histogram.api

Compute and draw the histogram of x. The return value is a tuple (nbinspatches) or ([n0n1, …], bins, [patches0patches1,…]) if the input contains multiple data.orm

Ex:htm

n, bins, patches = plt.hist(mean, 10, normed=True)blog

返回一个tupleip