Skip to content

Commit 3e75e62

Browse files
author
Kanghyun Kim
committed
fix trplot2 length argument error
1 parent 814494d commit 3e75e62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spatialmath/base/transforms2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,8 @@ def trplot2(
905905

906906
# create unit vectors in homogeneous form
907907
o = T @ np.array([0, 0, 1])
908-
x = T @ np.array([1, 0, 1]) * length
909-
y = T @ np.array([0, 1, 1]) * length
908+
x = T @ np.array([length, 0, 1])
909+
y = T @ np.array([0, length, 1])
910910

911911
# draw the axes
912912

0 commit comments

Comments
 (0)