ming 4 lat temu
rodzic
commit
de1fee97b2
1 zmienionych plików z 1 dodań i 1 usunięć
  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-^') # 設定樣式