0

To add percent of each slice. We write autopct='%1.1f%%'.. What is autopct actually and what is %1.1f%%

Python . Matplotlib. Pie Chart related query. Following is the code: https://code.sololearn.com/c19b4VKk2BZI/?ref=app

18th Feb 2020, 7:17 AM
Ishwarendra Jha
2 Answers
+ 1
It is used to take float values up-to tenth place after decimal as percentage for pie chart it is generally form of formatted string
19th Feb 2020, 4:04 PM
Abhishek
0
can we write %1f%% instead of %1.1f%%
19th Feb 2020, 4:05 PM
Ishwarendra Jha