Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0361004

Browse filesBrowse files
committed
reduce column width, eliminate leading space
1 parent 48b7a49 commit 0361004
Copy full SHA for 0361004

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎spatialmath/baseposematrix.py

Copy file name to clipboardExpand all lines: spatialmath/baseposematrix.py
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.