I\'d like to create a matplotlib pie chart which has the value of each wedge written on top of the wedge.
The documentation suggests I should use autopct
autopct
val=int(pct*total/100.0)
should be
val=int((pct*total/100.0)+0.5)
to prevent rounding errors.