Pythonデータ分析と展示ノート
第2週plt
plt.hist問題
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(0)
mu ,sigma =100,20#
a=np.random.normal(mu,sigma,size = 100)
plt.hist(a,20,density=True,histtype= 'stepfilled',facecolor = 'b',alpha = 0.75)#normed=1 , density=True
plt.title('Histogram')
plt.show()