Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5173cda + f56d915 commit fd2a95fCopy full SHA for fd2a95f
1 file changed
examples/pie_and_polar_charts/pie_and_donut_labels.py
@@ -43,7 +43,7 @@
43
44
45
def func(pct, allvals):
46
- absolute = int(pct/100.*np.sum(allvals))
+ absolute = int(round(pct/100.*np.sum(allvals)))
47
return "{:.1f}%\n({:d} g)".format(pct, absolute)
48
49
0 commit comments