import matplotlib.pyplot as plt

#ヒストグラムの作成
plt.hist(sample1)
plt.hist(sample2)

#グラフの表示
plt.show()