Issue
Trying to change pie diagram direction from right-left, to left-right direction. Now it looks like this:
from matplotlib import pyplot as plt
eye_color = {'blue':5,'green':10,'brown':20, 'black':15 }
sum([v for v in eye_color.values()])
P = [f/sum([v for v in eye_color.values()]) for f in eye_color.values()]
plt.pie(P, labels = [k for k in eye_color.keys()], startangle = 90, autopct = '%1.1f%%',
shadow = True)
plt.axis('equal')
plt.show()
How to show it like this, when first part angle degree going to a positive direction, right?:
Any help is greatly appreciated. Thanks in advance :)
Solution
As per the documentation, use
counterclock=False
Answered By - Diziet Asahi Answer Checked By - Candace Johnson (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.