LoginSignup
1
2

More than 5 years have passed since last update.

pythonでヒストグラム作成

Last updated at Posted at 2018-11-18

numpy と matplotlibを使ってヒストグラムを作る


#インポート
import numpy as np
import matplotlib.pyplot as plt

#データ作成
golf = np.array([110,107,121,137,87,92,104,129,98,99,139,82,105,100,114,122,109,94,106,111])

#描写
plt.hist(golf,range=[80,140],bins=6)
plt.grid(True)
plt.show()
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2