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

Skip to content

Commit 3ac4e08

Browse files
committed
Add 3D rotation snapping via Control key (axes3d.snap_rotation rcParam)
1 parent 24c3a53 commit 3ac4e08

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

doc/api/toolkits/mplot3d.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,5 @@ Rotation snapping
127127

128128
When rotating a 3D Axes while holding the Control key, the rotation
129129
angle is snapped to increments defined by the rcParam
130-
:rc:`axes3d._snap_rotation` (default: 5 degrees).
130+
:rc:`axes3d.snap_rotation` (which defaults to 0 (disabled). When set to a positive value,
131+
the rotation snaps to that many degrees.).

doc/release/next_whats_new/snap_3d_rotation.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33

44
Holding the Control key while rotating a 3D Axes snaps the rotation
55
angle to configurable increments. The snap angle is controlled via
6-
the rcParam :rc:`axes3d._snap_rotation`, which defaults to 5 degrees.
6+
the rcParam :rc:`axes3d.snap_rotation`, which defaults to 0 (disabled). When set to a positive value,
7+
the rotation snaps to that many degrees.

0 commit comments

Comments
 (0)