Skip to content

Commit 0e0d556

Browse files
committed
2 parents 40ad36f + f9deeba commit 0e0d556

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

toyplot/text.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def extents(text, angle, style):
4141

4242
for index, theta in enumerate(angle):
4343
transformation = toyplot.transform.rotation(theta)
44-
corner1[index] = numpy.diag(corner1[index] * transformation)
45-
corner2[index] = numpy.diag(corner2[index] * transformation)
46-
corner3[index] = numpy.diag(corner3[index] * transformation)
47-
corner4[index] = numpy.diag(corner4[index] * transformation)
44+
corner1[index] = numpy.matmul(corner1[index], transformation)
45+
corner2[index] = numpy.matmul(corner2[index], transformation)
46+
corner3[index] = numpy.matmul(corner3[index], transformation)
47+
corner4[index] = numpy.matmul(corner4[index], transformation)
4848

4949
left = numpy.minimum(corner1.T[0], numpy.minimum(
5050
corner2.T[0], numpy.minimum(corner3.T[0], corner4.T[0])))

0 commit comments

Comments
 (0)