Skip to content

Commit 426653d

Browse files
committed
Update plot_tf()
1 parent 86e34ec commit 426653d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

proto/proto.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -2473,11 +2473,12 @@ def plot_tf(ax, T, **kwargs):
24732473
assert T.shape == (4, 4)
24742474

24752475
size = kwargs.get('size', 1)
2476-
# linewidth = kwargs.get('linewidth', 3)
2476+
linewidth = kwargs.get('linewidth', 2)
24772477
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])
24792479
fontsize = kwargs.get('fontsize', 10)
24802480
fontweight = kwargs.get('fontweight', 'bold')
2481+
fontcolor = kwargs.get('fontcolor', 'k')
24812482
colors = kwargs.get('colors', ['r-', 'g-', 'b-'])
24822483

24832484
origin = tf_trans(T)
@@ -2489,20 +2490,21 @@ def plot_tf(ax, T, **kwargs):
24892490
px = [origin[0], lx[0]]
24902491
py = [origin[1], lx[1]]
24912492
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]
24932494

24942495
# Draw y-axis
24952496
px = [origin[0], ly[0]]
24962497
py = [origin[1], ly[1]]
24972498
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]
24992500

25002501
# Draw z-axis
25012502
px = [origin[0], lz[0]]
25022503
py = [origin[1], lz[1]]
25032504
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]
25052506

2507+
# rot = tf_rot(T)
25062508
# Draw label
25072509
if name is not None:
25082510
x = origin[0] + name_offset[0]

0 commit comments

Comments
 (0)