Skip to content

DOC: Use square plots for Pie Plots #8308

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
TomAugspurger opened this issue Sep 18, 2014 · 2 comments · Fixed by #8391
Closed

DOC: Use square plots for Pie Plots #8308

TomAugspurger opened this issue Sep 18, 2014 · 2 comments · Fixed by #8391
Labels
Milestone

Comments

@TomAugspurger
Copy link
Contributor

They look funny because the aspect ratio is off: http://pandas-docs.github.io/pandas-docs-travis/visualization.html#pie-plot

May also want to note that in the text also.

This would be great for a first pull request if anyone is interested. Just need to set the figsize to something like (8, 8) for each plot (or (16, 8) for the subplots example). Everything is in doc/source/visualization.rst

@onesandzeroes
Copy link
Contributor

As well as setting the figsize, you might want to try forcing an equal aspect ratio, e.g.:

series = Series(3 * rand(4), index=['a', 'b', 'c', 'd'], name='series')
ax = series.plot(kind='pie')
ax.set_aspect('equal')

@TomAugspurger
Copy link
Contributor Author

Added to #8312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants