Skip to content

Commit

Permalink
Correct colormap
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 16, 2024
1 parent b5f9af4 commit ed4aab7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,7 @@ def setup(app):
plt.savefig('languages.svg', transparent=True, bbox_inches='tight')

sizes = [size / count for size, count in zip(sizes, counts)]
sizes, labels, colors = zip(*sorted(zip(sizes, labels, colors), reverse=True))
pos = labels.index('Makefile')
labels.pop(pos)
sizes.pop(pos)
colors.pop(pos)
sizes, labels, colors = [z for z in zip(*sorted(zip(sizes, labels, colors), reverse=True)) if 'Makefile' not in z]
_, ax = plt.subplots()
ax.pie(sizes, labels=labels, colors=colors, autopct='%1.1f%%', labeldistance=None, pctdistance=0.85)
plt.legend(title='Languages', loc='right', bbox_to_anchor=(1,0.5), bbox_transform=plt.gcf().transFigure)
Expand Down

0 comments on commit ed4aab7

Please sign in to comment.