Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- # config
- labels = 'Low','Moderate','High','Very High'
- colors = ['#0909A2','#861886','#CB0083','#DE0000']
- # data
- n = 133
- paranoid = [36/n, 25/n, 34/n, 38/n]
- schizoid = [25/n, 37/n, 49/n, 22/n]
- schizotypal = [22/n, 43/n, 43/n, 25/n]
- antisocial = [0/n, 133/n, 0/n, 0/n]
- borderline = [54/n, 27/n, 39/n, 13/n]
- histrionic = [43/n, 60/n, 22/n, 8/n]
- narcissistic = [15/n, 45/n, 51/n, 22/n]
- avoidant = [42/n, 26/n, 36/n, 29/n]
- dependent = [70/n, 33/n, 19/n, 11/n]
- obsessiveCompulsive = [39/n, 38/n, 24/n, 32/n]
- count = 133
- # plot
- plt.pie(obsessiveCompulsive, explode=None, labels=labels, colors=colors, autopct='%1.1f%%', shadow=False, startangle=90)
- plt.title('Obsessive-Compulsive Rating | /pol | 22.08.2016')
- plt.axis('equal')
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement