Skip to content

Commit 3cf96a8

Browse files
committed
formatted
1 parent bb862ad commit 3cf96a8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

spatialmath/base/transforms2d.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,8 @@ def _vec2s(fmt, v):
718718
return ", ".join([fmt.format(x) for x in v])
719719

720720

721-
722721
def trplot2(
723722
T,
724-
725723
color="blue",
726724
frame=None,
727725
axislabel=True,
@@ -837,12 +835,12 @@ def trplot2(
837835
except AttributeError:
838836
pass # if axes are an Animate object
839837

840-
if not hasattr(ax, '_plotvol'):
838+
if not hasattr(ax, "_plotvol"):
841839
ax.set_aspect("equal")
842840

843841
if dims is not None:
844842
ax.axis(base.expand_dims(dims))
845-
elif not hasattr(ax, '_plotvol'):
843+
elif not hasattr(ax, "_plotvol"):
846844
ax.autoscale(enable=True, axis="both")
847845

848846
# create unit vectors in homogeneous form
@@ -933,6 +931,7 @@ def trplot2(
933931
plt.show(block=block)
934932
return ax
935933

934+
936935
def tranimate2(T, **kwargs):
937936
"""
938937
Animate a 2D coordinate frame
@@ -961,10 +960,10 @@ def tranimate2(T, **kwargs):
961960
"""
962961
anim = base.animate.Animate2(**kwargs)
963962
try:
964-
del kwargs['dims']
963+
del kwargs["dims"]
965964
except KeyError:
966965
pass
967-
966+
968967
anim.trplot2(T, **kwargs)
969968
anim.run(**kwargs)
970969

0 commit comments

Comments
 (0)