I would like to have the percentage values shown in white instead of in
black within a pie chart.
I figured I could do something like:
def reColor(percent):
"I am lost here on how to format the percentage and change
the color"
axes.pie(values, labels=labels, autopct=reColor, shadow=False,
colors=colors)
I thought I could use a mpl.text.Text but I only get the percentage in
"reColor".
Looked at the gallery and tried to based it on the "barchart_demo2.py"
example without success. Although would prefer not to have to loop
through the text.Text instances and figure out which ones are a
percentage and then color them - but I guess that would be one way of
doing it but it looks a bit odd to me.
Thanks for any tips
Werner
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users