2015-04-22 115 views

回答

2

安裝和使用matplotlib。您的代碼將是這個樣子:

import matplotlib.pyplot as plt 

s1=np.random.rand(1000,1000) 
plt.hist(s1) 

matplotlib爲您提供了大量有用的選項,你可以閱讀更多關於他們here