Axes Pie chart wrong legend colors

I have the following code:

ax1.pie(fracs, explode=explode, labels=labels, autopct='%1.1f%%',
shadow=True, pctdistance=0.9, labeldistance=1.1,)
ax1.legend(labels, loc=0, shadow=True, prop = smallfont)

And the chart:

Why do I get wrong legend colors???

Thank you for your help,


View this message in context:
Sent from the matplotlib - users mailing list archive at