[問題] imshow取消單位要怎麼做?
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
→
04/28 19:55, , 1F
04/28 19:55, 1F
Python 近期熱門文章
PTT數位生活區 即時熱門文章