Using matplot to create a little gauge with the code below:
group_size=[10,10,10,10,10,50]
labels=['AAAA','BBBB','CCCC','DDDD','EEEE','']
fig, ax = plt.subplots()
ax.axis('equal')
pie = ax.pie(group_size, radius=2.2, colors=['k'] ,startangle=180,counterclock=False)
pie2 = ax.pie([10,10,10,10,10,50], radius=2, labeldistance=0.7, labels=labels, rotatelabels = 270,
startangle=180,counterclock=False)
plt.show()
I am trying to get the labels to go horizontally and align with the midpoint of each wedge like this (but with the text inside the wedges):
Using rotatelabel=True, I get the following:
Any ideas on how I can achieve the horizontal rotation of the labels for the graph?