formatting!
This commit is contained in:
parent
bb71a681c8
commit
834ab86cca
1 changed files with 2 additions and 3 deletions
|
@ -39,11 +39,10 @@ class QuoteQuota(commands.Cog):
|
||||||
ax.pie(
|
ax.pie(
|
||||||
counts,
|
counts,
|
||||||
labels=usernames,
|
labels=usernames,
|
||||||
autopct='%1.1f%%',
|
autopct='%1.1f%% (%d)',
|
||||||
)
|
)
|
||||||
ax.legend(loc="upper right")
|
|
||||||
fio = io.BytesIO()
|
fio = io.BytesIO()
|
||||||
fig.savefig(fio, format='jpg')
|
fig.savefig(fio, format='jpg', bbox_inches='tight')
|
||||||
fio.seek(0)
|
fio.seek(0)
|
||||||
return discord.File(fio, filename="pie.jpeg")
|
return discord.File(fio, filename="pie.jpeg")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue