Browse Source

fix previous

ming 3 years ago
parent
commit
3269fa9753
1 changed files with 2 additions and 2 deletions
  1. 2 2
      newbot.py

+ 2 - 2
newbot.py

@@ -162,8 +162,8 @@ async def get_trend_image(kw):
     plt.gca().xaxis.set_major_formatter(mdates.DateFormatter('%Y/%m/%d'))
     plt.gca().xaxis.set_major_locator(mdates.DayLocator(interval=30)) #座標軸刻度1天
 
-    print(x_axis[:3])
-    print(y_axis[:3])
+    print(x_axis)
+    print(y_axis)
     target_path = 'trend_image/'+kw+".png"
     plt.plot(x_axis[:3], y_axis[:3],'r-^') # 設定樣式
     plt.savefig(target_path, bbox_inches='tight') #存檔,第二個參數表示把圖表外多餘的空間刪除