小编Jsu*_*suf的帖子

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)
Run Code Online (Sandbox Code Playgroud)

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.

python matplotlib

5
推荐指数
3
解决办法
7814
查看次数

标签 统计

matplotlib ×1

python ×1