|
@@ -158,7 +158,7 @@ async def get_trend_image(kw):
|
|
|
#y = [1, 5, 2, 7, 9, 1]
|
|
|
|
|
|
plt.gca().xaxis.set_major_formatter(mdates.DateFormatter('%Y/%m/%d'))
|
|
|
- plt.gca().xaxis.set_major_locator(mdates.DayLocator(interval=3)) #座標軸刻度1天
|
|
|
+ plt.gca().xaxis.set_major_locator(mdates.DayLocator(interval=30)) #座標軸刻度1天
|
|
|
|
|
|
target_path = 'trend_image/'+kw+".png"
|
|
|
plt.plot(x_axis, y_axis,'r-^') # 設定樣式
|