Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MAINT: Vectorize bar3d #12137

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 5 commits into from
Sep 24, 2018
Merged

MAINT: Vectorize bar3d #12137

merged 5 commits into from
Sep 24, 2018

Conversation

eric-wieser
Copy link
Contributor

@eric-wieser eric-wieser commented Sep 17, 2018

This refactors bar3d to use numpy to compute all the coordinates in parallel.

I'm not certain if this actually results in a speed increase, but it does result in a clarity improvement,

This spun out of #12136, which raised the fact that bar3d does not orient its faces correctly (#12138). This patch does not fix that, but it does make it easy to fix in a subsequent revision.

I can split the multiple commits here into multiple PRs if that adds value.

@eric-wieser eric-wieser changed the title MAINT: Vectorize the bar3d MAINT: Vectorize bar3d Sep 17, 2018
@eric-wieser
Copy link
Contributor Author

eric-wieser commented Sep 17, 2018

Flake8 failures seem to not be part of this patch?

./lib/mpl_toolkits/mplot3d/axes3d.py:1692:80: E501 line too long (84 > 79 characters)
./lib/mpl_toolkits/mplot3d/axes3d.py:1705:80: E501 line too long (83 > 79 characters)
2     E501 line too long (84 > 79 characters)

@anntzer
Copy link
Contributor

anntzer commented Sep 17, 2018

Style issue is fixed by #12139, feel free to rebase on top of it.

@eric-wieser
Copy link
Contributor Author

eric-wieser commented Sep 17, 2018

Too lazy to do that. I'll just close and re-open this PR once that one is merged to restart CI

@anntzer
Copy link
Contributor

anntzer commented Sep 17, 2018

merged #12139

@eric-wieser eric-wieser reopened this Sep 17, 2018
@eric-wieser
Copy link
Contributor Author

CI now passes - thanks!

@dstansby dstansby added this to the v3.1 milestone Sep 24, 2018
@QuLogic QuLogic merged commit 5d2d37e into matplotlib:master Sep 24, 2018
@eric-wieser eric-wieser deleted the bar3d-simplify branch March 23, 2019 18:06
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