@@ -11,8 +11,7 @@ The position of the viewport "camera" in a 3D plot is defined by three angles:
1111*elevation *, *azimuth *, and *roll *. From the resulting position, it always
1212points towards the center of the plot box volume. The angle direction is a
1313common convention, and is shared with
14- `PyVista <https://docs.pyvista.org/api/core/camera.html >`_ and
15- `MATLAB <https://www.mathworks.com/help/matlab/ref/view.html >`_.
14+ `PyVista <https://docs.pyvista.org/api/core/camera.html >`_ and MATLAB _.
1615Note that a positive roll angle rotates the
1716viewing plane clockwise, so the 3d axes will appear to rotate
1817counter-clockwise.
@@ -51,8 +50,7 @@ can be specified by setting :rc:`axes3d.mouserotationstyle`, see
5150:doc: `/users/explain/customizing `.
5251
5352Prior to v3.10, the 2D mouse position corresponded directly
54- to azimuth and elevation; this is also how it is done
55- in `MATLAB <https://www.mathworks.com/help/matlab/ref/view.html >`_.
53+ to azimuth and elevation; this is also how it is done in MATLAB _.
5654To keep it this way, set ``mouserotationstyle: azel ``.
5755This approach works fine for spherical coordinate plots, where the *z * axis is special;
5856however, it leads to a kind of 'gimbal lock' when looking down the *z * axis:
@@ -131,7 +129,7 @@ Henriksen et al. [Henriksen2002]_ provide an overview. In summary:
131129
132130 You can try out one of the various mouse rotation styles using:
133131
134- .. code ::
132+ .. code-block :: python
135133
136134 import matplotlib as mpl
137135 mpl.rcParams[' axes3d.mouserotationstyle' ] = ' trackball' # 'azel', 'trackball', 'sphere', or 'arcball'
@@ -188,6 +186,7 @@ the arcball to the border occurs at 45°, set the border width to
188186The border is a circular arc, wrapped around the arcball sphere cylindrically
189187(like a doughnut), joined smoothly to the sphere, much like Bell's hyperbola.
190188
189+ .. _MATLAB : https://www.mathworks.com/help/matlab/ref/view.html
191190
192191.. [Shoemake1992 ] Ken Shoemake, "ARCBALL: A user interface for specifying
193192 three-dimensional rotation using a mouse", in Proceedings of Graphics
0 commit comments