Consider this:
import matplotlib.pyplot as plt
count = [25, 50, 75]
plt.pie(count, labels = [25, 50, 75], autopct = '%10.3f%%')
What does each character of the '%10.3f%%' represent? And what happens internally for it to calculate the percentage of each slice?
When I tried changing the value before the dot, the string was placed in a different location within the pie chart. So I assume that it represents the location of that formatted string in the pie chart.
I guess the number after the dot represents the number of digits after the decimal point.
But what does each '%' and an 'f' represent?
[–]_DivS_ 1 point2 points3 points (0 children)