Skip to content

Add an argument rotate_labels to pie chart #2304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mmokrejs opened this issue Aug 16, 2013 · 3 comments · Fixed by #8217
Closed

Add an argument rotate_labels to pie chart #2304

mmokrejs opened this issue Aug 16, 2013 · 3 comments · Fixed by #8217
Labels
API: changes Difficulty: Medium https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues New feature
Milestone

Comments

@mmokrejs
Copy link

The text descriptions of individual pie slices are always output in horizontal orientation. Therefore, texts often overwrite each other. One can get around a bit by setting larger labeldistance but only unless there are too many slices close to each other.

Please provide an argument so that the text descriptions would follow the angle of its corresponding pie slice.

This has been discussed at http://matplotlib.1069221.n5.nabble.com/A-pie-chart-with-rotated-text-labels-td39059.html

@tacaswell tacaswell added this to the v1.5.x milestone Aug 17, 2014
@petehuang
Copy link
Contributor

Hi,

This issue has been inactive for a while. I don't think there has been any update (please correct me otherwise) and a PR is still welcome.

@WeatherGod
Copy link
Member

WeatherGod commented Dec 29, 2016 via email

@tacaswell tacaswell added new-contributor-friendly Difficulty: Medium https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues labels Dec 29, 2016
@tacaswell
Copy link
Member

This is self-contained (touches exactly one function), but tagged as medium as some thought is needed about the API.

The simplest API would be a bool flag of rotate=True, but taking a vector of angles would give more (too much?) flexibility.

Implementation wise, should probably make sure the text is as 'right side up' as possible.

hoshaun pushed a commit to justinsabourin/matplotlib that referenced this issue Mar 5, 2017
hoshaun pushed a commit to justinsabourin/matplotlib that referenced this issue Mar 5, 2017
NelleV added a commit that referenced this issue Mar 11, 2017
Add option to rotate labels in a pie chart (#2304)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API: changes Difficulty: Medium https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues New feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants