Skip to content

Commit de67c8c

Browse files
committed
Fix mplot3d.proj3d.rot_x's handling of w.
I'm pretty sure a rotation should not re-scale w.
1 parent 38b611b commit de67c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/mplot3d/proj3d.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,6 @@ def rot_x(V, alpha):
195195
M1 = np.array([[1,0,0,0],
196196
[0,cosa,-sina,0],
197197
[0,sina,cosa,0],
198-
[0,0,0,0]])
198+
[0,0,0,1]])
199199

200200
return np.dot(M1, V)

0 commit comments

Comments
 (0)