Answers for "matplotlib pie chart order"

0

matplotlib pie chart order

colors = [ '#99f3bd', '#fbaccc','#a8df65', '#ff7b54']
fig, ax = plt.subplots(figsize=(5,15))
ax.set_title('Treatment Group', fontsize=25, fontname="Times New Roman Bold")
ax = df['q6_t'].value_counts(normalize=True).plot.pie(autopct='%1.0f%%', colors = colors)
ax.set_ylabel("")
plt.savefig('q6_t.png', bbox_inches = 'tight', transparent=True)
Posted by: Guest on April-14-2021

Code answers related to "matplotlib pie chart order"

Browse Popular Code Answers by Language