Skip to content

Commit

Permalink
adjust percent label distance
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 16, 2024
1 parent 1dff969 commit 3c8b598
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 @@ -81,8 +81,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)
plt.legend(title='Languages', loc='center right', bbox_to_anchor=(0.8, 0, 0.5, 1))
ax.pie(sizes, labels=labels, autopct='%1.1f%%', labeldistance=None, pctdistance=0.8)
plt.legend(title='Languages', loc='center right', bbox_to_anchor=(-1, 0, 0.5, 1))
plt.savefig("languages.svg", transparent=True)

app.add_domain(custom_domain(
Expand Down

0 comments on commit 3c8b598

Please sign in to comment.