From e7c3b9c2ae6a346dbbf22908c4f891d2ddfd24dd Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Thu, 18 Jul 2024 00:23:14 -0500 Subject: [PATCH] Attempt legend placement fix --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e7dbb1bd..de05425d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -103,8 +103,8 @@ def setup(app): labels = [lang[0] for lang in langs] sizes = [lang[1] for lang in langs] fig, ax = plt.subplots() - ax.pie(sizes, labels=labels, autopct='%1.1f%%', labeldistance=None, pctdistance=0.8) - plt.legend(title='Languages', loc='center left', bbox_to_anchor=(1, 0)) + ax.pie(sizes, labels=labels, autopct='%1.1f%%', labeldistance=None, pctdistance=0.85) + plt.legend(title='Languages', loc='bottom') plt.savefig('languages.svg', transparent=True) app.add_domain(custom_domain(