Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Refactor for issue 28444#30115

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
vagnermcj wants to merge4 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromvagnermcj:refactor-for-issue-28444

Conversation

vagnermcj
Copy link

PR summary
This PR adressesissue #28444 and introduces a new internal 3D bounding box system to improve the way data limits are computed for 3D artists in mpl_toolkits.mplot3d.

Why is this change necessary?
Currently, autoscaling for 3D plots requires extracting and copying x, y, and z data from each artist, which is inefficient and error-prone. The system relies on auto_scale_xyz(), which is tied to manual data unpacking.

What’s implemented:
Added _Bbox3d, a 3D bounding box class with conversion methods to 2D Bbox

Added _get_datalim3d() to several 3D artist types: Line3D, Line3DCollection, Poly3DCollection, Patch3D, etc.

Implemented Axes3D.auto_scale_lim(bbox3d) using Bbox.union()

Updated add_collection3d() to use _get_datalim3d() and auto_scale_lim()

This lays the groundwork for a full refactor and replacement of auto_scale_xyz() across the codebase.

Let me know if it is workin as intended

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
Status: Needs review
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@vagnermcj

[8]ページ先頭

©2009-2025 Movatter.jp