Python 3.x 如何使用python从饼图中剪切标签并将其放入图例中

Python 3.x 如何使用python从饼图中剪切标签并将其放入图例中,python-3.x,label,legend,series,pie-chart,Python 3.x,Label,Legend,Series,Pie Chart,我想把馅饼的标签剪下来,放到图例里 dict={'a':45, 'b': 123, 'c':2, 'd':1755, 'e':13} ser = pd.Series(dict) print(ser) ser.plot(kind='pie', shadow=True, autopct='%1.2f%%', pctdistance=1.2) plt.show()

我想把馅饼的标签剪下来,放到图例里

dict={'a':45, 'b': 123, 'c':2, 'd':1755, 'e':13}
ser = pd.Series(dict)
print(ser)
ser.plot(kind='pie', shadow=True, autopct='%1.2f%%', pctdistance=1.2)
plt.show()