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

Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 519 Bytes

File metadata and controls

16 lines (11 loc) · 519 Bytes

Snapping 3D rotation angles with Control key

3D axes rotation now supports snapping to fixed angular increments when holding the Control key during mouse rotation.

The snap step size is controlled by the new axes3d.snap_rotation rcParam (default: 5.0 degrees). Setting it to 0 disables snapping.

For example:

mpl.rcParams["axes3d.snap_rotation"] = 10

will snap elevation, azimuth, and roll angles to multiples of 10 degrees while rotating with the mouse.