看板 Python 關於我們 聯絡資訊
index1 = find_index(xf, 0.4) index2 = find_index(xf, 1.6) minyear = datetime.datetime.fromtimestamp(np.min(timeval)).year maxyear = datetime.datetime.fromtimestamp(np.max(timeval)).year plt.figure() plt.title('Time and frequency_before') plt.xlabel("Date") plt.ylabel("Frequency (cycles/day)") plt.imshow(yf[index1:index2, :], origin='lower', aspect='auto', interpolation='nearest', extent=[minyear, maxyear, xf[index1], xf[index2]]) plt.colorbar() 結果圖: http://imgur.com/gzvzPYo minyear的值是2007 maxyear的值是2013 請問要如何不讓他變成指數型態呢?? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.134.94 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1430198170.A.2DD.html
ccwang002: 查了一下 http://stackoverflow.com/a/6654046 04/28 19:55