Skip to content

Commit

Permalink
Attempt legend placement fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 18, 2024
1 parent 96b12f3 commit e7c3b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e7c3b9c

Please sign in to comment.