Wednesday, 17 February 2021

Python - How to change autopct text color to be white in a pie chart?

pie(fbfrac,labels = fblabel,autopct='%1.1f%%',pctdistance=0.8,startangle=90,colors=fbcolor)

I have the chart displaying just as I want it, with the exception that the text will stand out better inside the plot if it is white instead of black.



from Python - How to change autopct text color to be white in a pie chart?

No comments:

Post a Comment