From 9d5a04f717c96756c168ac1a7d8ea2a82333a630 Mon Sep 17 00:00:00 2001 From: RoryIAngus <19604037+RoryIAngus@users.noreply.github.com> Date: Tue, 4 Jun 2019 17:09:58 +1000 Subject: [PATCH] #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. https://github.com/matplotlib/matplotlib/issues/14372 --- lib/mpl_toolkits/mplot3d/axes3d.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index 948d6a96f208..9fde2ccd7e28 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -963,12 +963,12 @@ def clabel(self, *args, **kwargs): def view_init(self, elev=None, azim=None): """ - Set the elevation and azimuth of the axes. + Set the elevation and azimuth of the axes in degrees (not radians). This can be used to rotate the axes programmatically. - 'elev' stores the elevation angle in the z plane. - 'azim' stores the azimuth angle in the x,y plane. + 'elev' stores the elevation angle in the z plane (in degrees). + 'azim' stores the azimuth angle in the x,y plane (in degrees). if elev or azim are None (default), then the initial value is used which was specified in the :class:`Axes3D` constructor.