Эх сурвалжийг харах

Canted Dates to 45 degree angle on Plot to help visibility

KeyMasterOfGozer 9 сар өмнө
parent
commit
0086f80a4a
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      discord-bot.py

+ 1 - 0
discord-bot.py

@@ -54,6 +54,7 @@ def todayGrid(level=None,tier=None,columns=None):
 def postPlot(card=None,columns=['cost','cost-min','cost-max']):
     df=getDF(card).plot(x='date',y=columns)
     plt.title(str(card))
+    plt.xticks(rotation=45)
     plt.xlabel("Date")
     plt.ylabel("Cost")
     plt.savefig(f"plots/{card}.png")