Werner F. Bruhin wrote:
> I would like to have the percentage values shown in white instead of in
> black within a pie chart.
>
The following code is doing what I want, but it does not feel right.
myPie = axes.pie(values, labels=labels, autopct=u'%1.0f%%',
shadow=False, colors=colors)
for x in myPie[2]:
x.set_color('w')
Is there really no "cleaner" way of doing this?
Werner
|