Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9d5a04f

Browse filesBrowse files
committed
#14372 - add degrees
This is in response to the issue #14372 which wanted the doco updated to reflect that it is in degrees not radians. #14372
1 parent 7e8536f commit 9d5a04f
Copy full SHA for 9d5a04f

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎lib/mpl_toolkits/mplot3d/axes3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/axes3d.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,12 +963,12 @@ def clabel(self, *args, **kwargs):
963963

964964
def view_init(self, elev=None, azim=None):
965965
"""
966-
Set the elevation and azimuth of the axes.
966+
Set the elevation and azimuth of the axes in degrees (not radians).
967967
968968
This can be used to rotate the axes programmatically.
969969
970-
'elev' stores the elevation angle in the z plane.
971-
'azim' stores the azimuth angle in the x,y plane.
970+
'elev' stores the elevation angle in the z plane (in degrees).
971+
'azim' stores the azimuth angle in the x,y plane (in degrees).
972972
973973
if elev or azim are None (default), then the initial value
974974
is used which was specified in the :class:`Axes3D` constructor.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.