8000 reduce column width, eliminate leading space · flyinger/spatialmath-python@0361004 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0361004

Browse files
committed
reduce column width, eliminate leading space
1 parent 48b7a49 commit 0361004

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spatialmath/baseposematrix.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class BasePoseMatrix(BasePoseList):
102102
_bgcolor = None
103103
_constcolor = 'grey_50'
104104
_indexcolor = (None, 'yellow_2')
105-
_format = '{:< 12g}'
105+
_format = '{:< 9.4g}'
106106
_suppress_small = True
107107
_suppress_tol = 100
108108
_color = _colored
@@ -766,7 +766,7 @@ def mformat(self, X):
766766
out = ''
767767
n = self.N # dimension of rotation submatrix
768768
for rownum, row in enumerate(X):
769-
rowstr = ' '
769+
rowstr = ' '
770770
# format the columns
771771
for colnum, element in enumerate(row):
772772
if sym.issymbol(element):
@@ -786,7 +786,7 @@ def mformat(self, X):
786786
else:
787787
# bottom row
788788
s = constcol + bgcol + s + reset
789-
rowstr += s
789+
rowstr += ' ' + s
790790
out += rowstr + bgcol + ' ' + reset + '\n'
791791
return out
792792

0 commit comments

Comments
 (0)
0