wanted to draw two pie charts beside each other, but the text from right figure goes iside let fig. I tried subplots_adjust, but did not work. I will appreciate if you suggest a way to draw the figure properly. Also, is there a way to label each individual pie chart?
labes1,values1=[0, 1], [0.7099673202614379, 0.2900326797385621]
labels2,values2=['Pass', 'Withdrawn', 'Fail', 'Distinction'],[0.3510392609699769,0.33102386451116245,0.2763664357197845,0.04157043879907621]
fig = plt.figure(figsize=(5,5),dpi=300)
ax1 = fig.add_subplot(121)
ax1.pie(values1,radius=1.5,autopct='%0.2f%%',labels=labels1,label="")
ax2 = fig.add_subplot(122)
ax2.pie(values2,radius=1.5,autopct='%0.2f%%',labels=labels2,label="")
plt.subplots_adjust(left=0.1,
bottom=0.1,
right=0.9,
top=0.9,
wspace=0.4,
hspace=0.9)
plt.show()