plt.hist 画正态分布图

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

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

Plot a histogram.

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

Ex:

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

返回一个tuple

 

 

你可能感兴趣的:(plt.hist 画正态分布图)