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

Skip to content

Commit 4ea7cce

Browse files
committed
Fix typo in rotate [skip ci]
1 parent 57a9d52 commit 4ea7cce

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lib/matplotlib/tests/test_transforms.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,6 @@ def test_rotate_around(self):
464464
# assert_array_almost_equal(r270.transform(self.multiple_points),
465465
# [[2, 2], [3, -1], [0, -2]])
466466

467-
# raise TypeError(np.array_str((r90[2]+r90[2]).get_matrix(),
468-
# precision=2, suppress_small=True))
469-
# raise TypeError(np.array_str(r180[2].get_matrix(),
470-
# precision=2, suppress_small=True))
471-
472467
for dim in range(3):
473468
assert_array_almost_equal(
474469
(r90[dim] + r90[dim]).get_matrix(), r180[dim].get_matrix())

lib/matplotlib/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2301,7 +2301,7 @@ def rotate(self, theta, dim=0):
23012301
mtx[0, 0] = (a * xx) - (b * yx)
23022302
mtx[0, 1] = (a * xy) - (b * yy)
23032303
mtx[0, 2] = (a * xz) - (b * yz)
2304-
mtx[0, 3] = (a * x0) + (b * y0)
2304+
mtx[0, 3] = (a * x0) - (b * y0)
23052305
mtx[1, 0] = (b * xx) + (a * yx)
23062306
mtx[1, 1] = (b * xy) + (a * yy)
23072307
mtx[1, 2] = (b * xz) + (a * yz)

0 commit comments

Comments
 (0)