I am learning using matplotlib visualizations and was doing a simple pie chart. I am wondering why when I plot this, the percentages are as follow:
I was expecting it to show 40% frogs and 50% hogs...
Do I need to normalize or something?
labels = 'Frogs', 'Hogs'
sizes = [40,50]
#explode = (0, 0.1, 0, 0) # only "explode" the 2nd slice (i.e. 'Hogs')
fig1, ax1 = plt.subplots()
ax1.pie(sizes,labels=labels, autopct='%1.1f%%')
ax1.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
plt.show()

