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

Skip to content

Commit 9d5a04f

Browse 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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines 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)