-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add auto-scaling support to "add_collection3d" #25751
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
Conversation
Co-authored-by: Tim Hoffmann <[email protected]>
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.
We would prefer if you could rebase instead of merge. It appears there are some completely unrelated commits in this PR that shouldn't be here.
# If a 2D collection was passed, it has been converted to 3D | ||
|
||
if autolim: | ||
if type(col) is art3d.Line3DCollection: |
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.
Is there a reason to not use isinstance
here?
Hi @lganic, are you still interested in working on this PR? |
PR Summary
closes #17130
Adds support for auto-scaling 3D collection objects in the add_collection3d function. The new implementation is consistent with the behavior of the existing 2D implementation, where auto-scaling is True by default.
Test cases were added for each of the relevant autoscaling functions.
The autoscaling works with most 2D/3D collections; the only collection I wasn't able to get working was Patch3DCollection, which (as far as I can tell) seems to have a number of ongoing bugs that make them borderline unusable, and untestable.
Also turns out that a few of the test cases suffered from the bug seen in #17130, so I updated the failing tests accordingly.
PR Checklist
Linked Issue
Documentation and Tests
pytest
passes)Release Notes
.. versionadded::
directive in the docstring and documented indoc/users/next_whats_new/
.. versionchanged::
directive in the docstring and documented indoc/api/next_api_changes/
next_whats_new/README.rst
ornext_api_changes/README.rst