You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow option to display absolute values for pie chart #19338
I would like to show a label displaying the absolute numbers used to create the pie chart. Currently, only percentage labels are supported via autopct. Hacky solutions like https://stackoverflow.com/a/48299798/3779655 or https://stackoverflow.com/a/41089685/3779655 exist to retrieve the absolute values based from the fractional ones. It would be better to support it out of the box.
Proposed Solution
Add option wedgelabels=None|'percent'|'absolute'|list of strings together with wedgelabelfmt replacing autopct.
For migration, initialize wedgelabelfmt=autopct for wedgelabels='percent' and overwrite if wedgelabelfmt is set.
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Activity
timhoffm commentedon Jan 22, 2021
While at it,
wedgelabelscould also accept a list of strings.github-actions commentedon Sep 29, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
rcomer commentedon Sep 29, 2023
I found myself wanting this recently.