You can do this on a single line using the textprops argument of pyplot.pie . It's simple:
plt.pie(data, autopct='%1.1f%%', textprops={'color':"w"})
In your case:
pie(fbfrac, labels=fblabel, autopct='%1.1f%%', pctdistance=0.8, startangle=90, colors=fbcolor, textprops={'color':"w"})
An interesting example can be found here .
kiril source share