-1
我試圖將二維直方圖繪製爲熱圖。將二維直方圖保存爲python中的熱圖
下面是代碼:
def save_2d_hist(hist2D):
import pylab as pl
print hist2D.shape
pl.pcolor(hist2D)
pl.colorbar()
pl.savefig('graph.png')
我HIST是(11L,10L),但我得到的有12行的畫面,我該如何解決?