From c53dd9172934d02fb6dc016bda07e041bfeadfe0 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Tue, 19 Mar 2024 00:32:20 +0000 Subject: [PATCH] again, just fit in the window please please --- src/cogs/quote_quota.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cogs/quote_quota.py b/src/cogs/quote_quota.py index 7c69e95..ff1c184 100644 --- a/src/cogs/quote_quota.py +++ b/src/cogs/quote_quota.py @@ -57,20 +57,19 @@ class QuoteQuota(commands.Cog): # And now filter out any -1% counts counts = [c for c in counts if c != -1] - fig, ax = plt.subplots() + fig, ax = plt.subplots(figsize=(10, 10)) ax.pie( counts, labels=usernames, autopct=pct, startangle=90, radius=1.5, - figsize=(10, 10) ) fio = io.BytesIO() plt.subplots_adjust(left=0.1, bottom=0.1, right=0.9, top=0.9) - fig.savefig(fio, format='jpg') + fig.savefig(fio, format='png') fio.seek(0) - return discord.File(fio, filename="pie.jpeg") + return discord.File(fio, filename="pie.png") @commands.slash_command() async def quota(