Skip to content

Add pan and zoom toolbar handling to 3D Axes (Replaces PR#22614) #23449

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 47 commits into from
Oct 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
d161de3
ENH: Add pan and zoom toolbar handling to 3D Axes
greglucas Mar 3, 2022
9fd9c66
Rewrite zooming with bounding box
scottshambaugh Jul 15, 2022
4b1d8cf
Rewrite 3d panning to work with a roll angle
scottshambaugh Jul 16, 2022
a6e4651
Whats new for zoom and pan buttons
scottshambaugh Jul 16, 2022
d7a3d6c
Make pan button configurable
scottshambaugh Jul 16, 2022
acbec0c
Do not jump when zooming and mouse goes over other subplot
scottshambaugh Jul 19, 2022
bb95903
Rework zooming for 3d plots
scottshambaugh Jul 19, 2022
88d616f
Handle x/y lock when zooming and panning
scottshambaugh Jul 19, 2022
5833512
Update tests
scottshambaugh Jul 19, 2022
b6fe8b0
Docstrings
scottshambaugh Jul 19, 2022
8a1e166
Dont assume a scale_z
scottshambaugh Jul 19, 2022
8f434d6
Limit zoom box
scottshambaugh Jul 20, 2022
da4fccc
Test zoom pan key modifiers
scottshambaugh Jul 20, 2022
695fd50
Save some calculation by saving view axes
scottshambaugh Jul 20, 2022
86f4f64
Deprecation warnings for Axes3D.eye, .vvec
scottshambaugh Jul 21, 2022
47f7000
Remove Axes3D._prepare_view_from_bbox for now
scottshambaugh Jul 22, 2022
1eb74b6
Comments and docstrings
scottshambaugh Jul 22, 2022
4a6020b
Switch from uvn to uvw
scottshambaugh Jul 22, 2022
11f6625
Save aspect to axes
scottshambaugh Aug 3, 2022
a1ac931
Merge branch 'aspect_equal_3d' into pan-zoom-3d
scottshambaugh Aug 3, 2022
4a54404
Constrain zooming with mouse when one of the equal aspect ratios is set
scottshambaugh Aug 3, 2022
e1f43f3
Cleanup
scottshambaugh Aug 3, 2022
33aef1c
Merge branch 'aspect_equal_3d' into pan-zoom-3d
scottshambaugh Aug 3, 2022
80211c9
Merge branch 'aspect_equal_3d' into pan-zoom-3d
scottshambaugh Aug 3, 2022
423cec8
Cleanup
scottshambaugh Aug 3, 2022
aa04186
Consolidate finding equal aspect axis indices
scottshambaugh Aug 3, 2022
59e9814
Merge branch 'matplotlib:main' into pan-zoom-3d
scottshambaugh Aug 3, 2022
9e50954
linting
scottshambaugh Aug 3, 2022
0c2864d
Merge branch 'main' into pan-zoom-3d
scottshambaugh Aug 27, 2022
d55706c
More intuitive scaling
scottshambaugh Aug 27, 2022
0008c02
Box zoom keeps existing aspect ratios
scottshambaugh Aug 27, 2022
caeff1b
Linting
scottshambaugh Aug 27, 2022
772b511
Code review comments
scottshambaugh Aug 30, 2022
1cdc5aa
Merge branch 'main' into pan-zoom-3d
scottshambaugh Sep 6, 2022
039b975
Revert parameters for view_transformation
scottshambaugh Sep 6, 2022
bb47e26
Fix new 3d pan/zoom view going on view stack twice
scottshambaugh Sep 6, 2022
f6a3d2e
Better clipping
scottshambaugh Sep 6, 2022
80b08a3
Test 3d toolbar navigation
scottshambaugh Sep 6, 2022
50defe5
Privatize helper functions
scottshambaugh Sep 6, 2022
9e60e62
Deprecations
scottshambaugh Sep 6, 2022
44a6d28
Code review changes
scottshambaugh Sep 8, 2022
7ac9f0a
Deprecation note
scottshambaugh Oct 4, 2022
c2c59e9
Merge branch 'main' into pan-zoom-3d
scottshambaugh Oct 4, 2022
a045f36
Undeprecate proj3d.view_transformation
scottshambaugh Oct 5, 2022
e759fba
Undeprecate proj3d.view_transformation
scottshambaugh Oct 5, 2022
ae8f6a1
Update doc/api/next_api_changes/deprecations/23449-SS.rst
scottshambaugh Oct 6, 2022
28fae53
Merge branch 'pan-zoom-3d' of github.com:scottshambaugh/matplotlib in…
scottshambaugh Oct 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/api/next_api_changes/deprecations/23449-SS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
``axes3d.vvec``, ``axes3d.eye``, ``axes3d.sx``, and ``axes3d.sy``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... are deprecated without replacement.
8 changes: 8 additions & 0 deletions doc/users/next_whats_new/3d_plot_pan_zoom.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
3D plot pan and zoom buttons
----------------------------

The pan and zoom buttons in the toolbar of 3D plots are now enabled.
Unselect both to rotate the plot. When the zoom button is pressed,
zoom in by using the left mouse button to draw a bounding box, and
out by using the right mouse button to draw the box. When zooming a
3D plot, the current view aspect ratios are kept fixed.
Loading