ming il y a 4 ans
Parent
commit
de1fee97b2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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-^') # 設定樣式