Skip to content

Commit

Permalink
Fix roll angle units, issue matplotlib#28256
Browse files Browse the repository at this point in the history
Pass roll angle to view_init() in degrees (not radians)
  • Loading branch information
MischaMegens2 committed May 19, 2024
1 parent 55cf8c7 commit f28c345
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,7 @@ def _on_move(self, event):
dazim = -(dy/h)*180*np.sin(roll) - (dx/w)*180*np.cos(roll)
elev = self.elev + delev
azim = self.azim + dazim
roll = self.roll
vertical_axis = self._axis_names[self._vertical_axis]
self.view_init(
elev=elev,
Expand Down

0 comments on commit f28c345

Please sign in to comment.