This commit is contained in:
Brandon 2022-10-14 14:16:23 -04:00
parent 89d7b50d1c
commit 34d8f638a8

View file

@ -1290,7 +1290,7 @@ class ActivityLogger(commands.Cog):
save_path = str(PATH / f"plot_{ctx.message.id}.png")
table_save_path = str(PATH / f"plot_data_{ctx.message.id}.txt")
plt.bar(df.iloc[:10].index, df.iloc[:10, "num_messages"], width=0.5)
plt.bar(df.head(10).index, df.head(10)["num_messages"], width=0.5)
# make graph look nice
plt.title(
@ -1421,7 +1421,7 @@ class ActivityLogger(commands.Cog):
save_path = str(PATH / f"plot_{ctx.message.id}.png")
table_save_path = str(PATH / f"plot_data_{ctx.message.id}.txt")
plt.bar(df.iloc[:10].index, df.iloc[:10, "num_messages"], width=0.5)
plt.bar(df.head(10).index, df.head(10)["num_messages"], width=0.5)
# make graph look nice
plt.title(