Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update Pie Demo2 #11083

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

Merged
merged 1 commit into from
Apr 19, 2018
Merged

Update Pie Demo2 #11083

merged 1 commit into from
Apr 19, 2018

Conversation

timhoffm
Copy link
Member

PR Summary

Pie Demo2 rewritten. In particular

  • switch from GridSpec to plt.subplots() - simpler in this case.
  • pie does now set aspect=1. No need to do this explicitly anymore
  • use textprops kwarg instead of looping over the returned texts
  • use setp insead of looping over the autotexts.
  • improved description.

@tacaswell tacaswell added this to the v2.2-doc milestone Apr 18, 2018
@timhoffm
Copy link
Member Author

For easy review:
old
new

@jklymak
Copy link
Member

jklymak commented Apr 19, 2018

Not a fan of the pie call indenting I’d either just indent 8 spaces or line up w the pie call, not the ax object. But I’m hardly a python indenting pro.

@dstansby dstansby merged commit 8f1a399 into matplotlib:master Apr 19, 2018
lumberbot-app bot pushed a commit that referenced this pull request Apr 19, 2018
@timhoffm timhoffm deleted the pie-demo2 branch April 19, 2018 16:57
jklymak added a commit that referenced this pull request Apr 19, 2018
dstansby added a commit that referenced this pull request Apr 23, 2018
dstansby added a commit that referenced this pull request Apr 23, 2018
jklymak added a commit that referenced this pull request Apr 23, 2018
…of-pr-11083

Revert "Backport PR #11083 on branch v2.2.2-doc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.