@@ -2473,11 +2473,12 @@ def plot_tf(ax, T, **kwargs):
2473
2473
assert T .shape == (4 , 4 )
2474
2474
2475
2475
size = kwargs .get ('size' , 1 )
2476
- # linewidth = kwargs.get('linewidth', 3 )
2476
+ linewidth = kwargs .get ('linewidth' , 2 )
2477
2477
name = kwargs .get ('name' , None )
2478
- name_offset = kwargs .get ('name_offset ' , [0 , 0 , - 0.01 ])
2478
+ nameoffset = kwargs .get ('nameoffset ' , [0 , 0 , - 0.01 ])
2479
2479
fontsize = kwargs .get ('fontsize' , 10 )
2480
2480
fontweight = kwargs .get ('fontweight' , 'bold' )
2481
+ fontcolor = kwargs .get ('fontcolor' , 'k' )
2481
2482
colors = kwargs .get ('colors' , ['r-' , 'g-' , 'b-' ])
2482
2483
2483
2484
origin = tf_trans (T )
@@ -2489,20 +2490,21 @@ def plot_tf(ax, T, **kwargs):
2489
2490
px = [origin [0 ], lx [0 ]]
2490
2491
py = [origin [1 ], lx [1 ]]
2491
2492
pz = [origin [2 ], lx [2 ]]
2492
- xaxis = ax .plot (px , py , pz , colors [0 ])[0 ]
2493
+ xaxis = ax .plot (px , py , pz , colors [0 ], linewidth = linewidth )[0 ]
2493
2494
2494
2495
# Draw y-axis
2495
2496
px = [origin [0 ], ly [0 ]]
2496
2497
py = [origin [1 ], ly [1 ]]
2497
2498
pz = [origin [2 ], ly [2 ]]
2498
- yaxis = ax .plot (px , py , pz , colors [1 ])[0 ]
2499
+ yaxis = ax .plot (px , py , pz , colors [1 ], linewidth = linewidth )[0 ]
2499
2500
2500
2501
# Draw z-axis
2501
2502
px = [origin [0 ], lz [0 ]]
2502
2503
py = [origin [1 ], lz [1 ]]
2503
2504
pz = [origin [2 ], lz [2 ]]
2504
- zaxis = ax .plot (px , py , pz , colors [2 ])[0 ]
2505
+ zaxis = ax .plot (px , py , pz , colors [2 ], linewidth = linewidth )[0 ]
2505
2506
2507
+ # rot = tf_rot(T)
2506
2508
# Draw label
2507
2509
if name is not None :
2508
2510
x = origin [0 ] + name_offset [0 ]
0 commit comments