Skip to content

Commit b4a5504

Browse files
committed
test new options
1 parent 4528a06 commit b4a5504

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎tests/base/test_transforms3d.py‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,24 @@ def test_print(self):
394394

395395
def test_plot(self):
396396
plt.figure()
397-
trplot(transl(1, 2, 3), block=False, frame='A', rviz=True, width=1, dims=[0, 10, 0, 10, 0, 10])
397+
# test options
398+
trplot(transl(1, 2, 3), block=False, frame='A', style='line', width=1, dims=[0, 10, 0, 10, 0, 10])
399+
trplot(transl(1, 2, 3), block=False, frame='A', style='arrow', width=1, dims=[0, 10, 0, 10, 0, 10])
400+
trplot(transl(1, 2, 3), block=False, frame='A', style='rgb', width=1, dims=[0, 10, 0, 10, 0, 10])
398401
trplot(transl(3, 1, 2), block=False, color='red', width=3, frame='B')
399402
trplot(transl(4, 3, 1)@trotx(math.pi / 3), block=False, color='green', frame='c', dims=[0, 4, 0, 4, 0, 4])
400403

404+
# test for iterable
405+
plt.clf()
406+
T = [transl(1,2,3), transl(2,3,4), transl(3,4,5)]
407+
trplot(T)
408+
401409
plt.clf()
402410
tranimate(transl(1, 2, 3), repeat=False)
403411
tranimate(transl(1, 2, 3), repeat=False, pause=2)
404412
# run again, with axes already created
405413
tranimate(transl(1, 2, 3), repeat=False, pause=2, dims=[0, 10, 0, 10, 0, 10])
414+
406415
plt.close('all')
407416
# test animate with line not arrow, text, test with SO(3)
408417

0 commit comments

Comments
 (0)