from matplotlib import pyplot as plt plt.hist(data)
で基本的にOKだと思う
90度回転させたい
1つ前の記事に書いたけど、

ように図を回転させたいときは、
ax.hist(np.cos(x), bins=40, alpha=.5, log=True, orientation="horizontal")
numpy - Vertical Histogram in Python and Matplotlib - Stack Overflow
logスケールにしたい
log=True
を追加する
色を変えたい・色を半透明にしたい
ax.hist(np.cos(x), bins=40, alpha=.5, log=True, orientation="horizontal")
のようにalphaとかcolorを追加する
ランキング参加中です
↓クリックしていただけると嬉しいです〜