diff --git a/src/cogs/quote_quota.py b/src/cogs/quote_quota.py index 6b508b4..f8a9dd3 100644 --- a/src/cogs/quote_quota.py +++ b/src/cogs/quote_quota.py @@ -67,6 +67,7 @@ class QuoteQuota(commands.Cog): usernames = list(new_mapping.keys()) counts = list(new_mapping.values()) + plt.clf() fig, ax = plt.subplots(figsize=(7, 7)) ax.pie( counts, @@ -264,6 +265,7 @@ class QuoteQuota(commands.Cog): :return: A discord.File with the rendered graph """ hrs = [x.zfill(2) for x in hours.keys()] + plt.clf() plt.title("Truth times") plt.xlabel("Hour") plt.ylabel("Truths")