Browse Source

fix previous

ming 4 năm trước cách đây
mục cha
commit
de1fee97b2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      newbot.py

+ 1 - 1
newbot.py

@@ -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-^') # 設定樣式