Skip to content

Commit f28c345

Browse files
committed
Fix roll angle units, issue matplotlib#28256
Pass roll angle to view_init() in degrees (not radians)
1 parent 55cf8c7 commit f28c345

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,7 @@ def _on_move(self, event):
15241524
dazim = -(dy/h)*180*np.sin(roll) - (dx/w)*180*np.cos(roll)
15251525
elev = self.elev + delev
15261526
azim = self.azim + dazim
1527+
roll = self.roll
15271528
vertical_axis = self._axis_names[self._vertical_axis]
15281529
self.view_init(
15291530
elev=elev,

0 commit comments

Comments
 (0)