8000 fix bug in reprs, now displays the scene graph · 2345vor/robotics-toolbox-python@a4adc6e · GitHub
[go: up one dir, main page]

Skip to content

Commit a4adc6e

Browse files
committed
fix bug in reprs, now displays the scene graph
1 parent bae3a73 commit a4adc6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roboticstoolbox/backends/PyPlot/PyPlot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __repr__(self):
8989
if s == "":
9090
return f"PyPlot3D backend, t = {self.sim_time}, empty scene"
9191
else:
92-
return f"PyPlot3D backend, t = {self.sim_time}, scene:\n"
92+
return f"PyPlot3D backend, t = {self.sim_time}, scene:\n" + s
9393

9494
def launch(self, name=None, fig=None, limits=None, **kwargs):
9595
"""

roboticstoolbox/backends/PyPlot/PyPlot2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __repr__(self):
5656
if s == "":
5757
return f"PyPlot2D backend, t = {self.sim_time}, empty scene"
5858
else:
59-
return f"PyPlot2D backend, t = {self.sim_time}, scene:\n"
59+
return f"PyPlot2D backend, t = {self.sim_time}, scene:\n" + s
6060

6161
def launch(self, name=None, limits=None, **kwargs):
6262
"""

0 commit comments

Comments
 (0)
0