Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
3D plotting performance improvements #29397
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
3D plotting performance improvements #29397
Changes from all commits
9f66076
94c6ca7
606e76f
b48cdcf
0bf8b7b
fdcc0d8
e0ff208
80a5a95
d18c52b
1782309
a700fe9
52a06a6
68b8a6c
4fc3745
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 408 in lib/mpl_toolkits/mplot3d/art3d.py
lib/mpl_toolkits/mplot3d/art3d.py#L408
Check warning on line 459 in lib/mpl_toolkits/mplot3d/art3d.py
lib/mpl_toolkits/mplot3d/art3d.py#L459
Check warning on line 547 in lib/mpl_toolkits/mplot3d/art3d.py
lib/mpl_toolkits/mplot3d/art3d.py#L546-L547
Check warning on line 605 in lib/mpl_toolkits/mplot3d/art3d.py
lib/mpl_toolkits/mplot3d/art3d.py#L604-L605
Check warning on line 721 in lib/mpl_toolkits/mplot3d/art3d.py
lib/mpl_toolkits/mplot3d/art3d.py#L720-L721
Check warning on line 731 in lib/mpl_toolkits/mplot3d/art3d.py
lib/mpl_toolkits/mplot3d/art3d.py#L731
Check warning on line 1108 in lib/mpl_toolkits/mplot3d/art3d.py
lib/mpl_toolkits/mplot3d/art3d.py#L1107-L1108
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these errors be handled within the
_proj_transform_vectors
case directly closer to where these errors would actually arise? I know there has been some work in numpy to not raise invalid/division warnings on masked elements, so is this still an issue now?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the error ignore line and did not see any issues. The tests cover partially masked Poly3DCollections, so that case is exercised, and it looks like the improved masked handling covers any previous errors here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the error does crop up in the AppVeyor build, so adding the original error suppression back in. I don't want to put it in
_proj_transform_vectors
since it might not always be the case that we know that we have masked out the problematic vertices outside of that function.Check warning on line 1231 in lib/mpl_toolkits/mplot3d/art3d.py
lib/mpl_toolkits/mplot3d/art3d.py#L1230-L1231