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

Skip to content

Commit 686f0ca

Browse files
committed
Suggestions from the reviewer
1 parent e7665b7 commit 686f0ca

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/api/toolkits/mplot3d/view_angles.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Rotation with mouse
4747

4848
3D plots can be reoriented by dragging the mouse.
4949
There are various ways to accomplish this; the style of mouse rotation
50-
can be specified by setting ``rcParams.axes3d.mouserotationstyle``, see
50+
can be specified by setting :rc:`axes3d.mouserotationstyle`, see
5151
:doc:`/users/explain/customizing`.
5252

5353
Prior to v3.10, the 2D mouse position corresponded directly
@@ -169,7 +169,7 @@ Alternatively, create a file ``matplotlibrc``, with contents::
169169
the :ref:`mplot3d-examples-index` examples.
170170

171171
The size of the virtual trackball or arcball can be adjusted as well,
172-
by setting ``rcParams.axes3d.trackballsize``. This specifies how much
172+
by setting :rc:`axes3d.trackballsize`. This specifies how much
173173
mouse motion is needed to obtain a given rotation angle (when near the center),
174174
and it controls where the edge of the arcball is (how far from the center,
175175
how close to the plot edge).

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,8 +1510,9 @@ def _calc_coord(self, xv, yv, renderer=None):
15101510

15111511
def _arcball(self, x: float, y: float, style: str) -> np.ndarray:
15121512
"""
1513-
Convert a point (x, y) to a point on a virtual trackball
1514-
either Ken Shoemake's arcball (a sphere) or
1513+
Convert a point (x, y) to a point on a virtual trackball.
1514+
1515+
This is either Ken Shoemake's arcball (a sphere) or
15151516
Tom Holroyd's (a sphere combined with a hyperbola).
15161517
See: Ken Shoemake, "ARCBALL: A user interface for specifying
15171518
three-dimensional rotation using a mouse." in

0 commit comments

Comments
 (0)