8000 added print, printline and plot in the superclass · RPellowski/spatialmath-python@4ffaa12 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ffaa12

Browse files
committed
added print, printline and plot in the superclass
1 parent 2b597fa commit 4ffaa12

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

spatialmath/super_pose.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,16 +483,19 @@ def interp(self, arg):
483483
#----------------------- i/o stuff
484484

485485
def print(self):
486+
print(self)
487+
488+
def printline(self):
486489
if self.N == 2:
487-
trprint2(self.A)
490+
tr.trprint2(self.A)
488491
else:
489-
trprint(self.A)
492+
tr.trprint(self.A)
490493

491-
def plot(self):
494+
def plot(self, *args, **kwargs):
492495
if self.N == 2:
493-
trplot2(self.A)
496+
tr.trplot2(self.A, *args, **kwargs)
494497
else:
495-
trplot(self.A)
498+
tr.trplot(self.A, *args, **kwargs)
496499

497500
def __repr__(self):
498501
# #print('in __repr__')

0 commit comments

Comments
 (0)
0