8000 compact printing format · flyinger/spatialmath-python@f64bd80 · GitHub
[go: up one dir, main page]

Skip to content

Commit f64bd80

Browse files
committed
compact printing format
1 parent 2f45ce9 commit f64bd80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spatialmath/base/transforms2d.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ def transl2(x, y=None):
153153
:type x: float
154154
:param y: translation along Y-axis
155155
:type y: float
156-
:return: SE(2) transform matrix or the translation elements of a homogeneous transform
157-
:rtype: ndarray(3,3)
156+
:return: SE(2) transform matrix or the translation elements of a homogeneous
157+
transform :rtype: ndarray(3,3)
158158
159-
- ``T = transl2([X, Y])`` is an SE(2) homogeneous transform (3x3) representing a
160-
pure translation.
159+
- ``T = transl2([X, Y])`` is an SE(2) homogeneous transform (3x3)
160+
representing a pure translation.
161161
- ``T = transl2( V )`` as above but the translation is given by a 2-element
162162
list, dict, or a numpy array, row or column vector.
163163
@@ -619,7 +619,7 @@ def trinterp2(start, end, s=None):
619619
return ValueError('Argument must be SO(2) or SE(2)')
620620

621621

622-
def trprint2(T, label=None, file=sys.stdout, fmt='{:8.2g}', unit='deg'):
622+
def trprint2(T, label=None, file=sys.stdout, fmt='{:.3g}', unit='deg'):
623623
"""
624624
Compact display of SE(2) or SO(2) matrices
625625

0 commit comments

Comments
 (0)
0