8000 Try to fix bug with PyPlot teach panel failing after a while · yobzhuu/robotics-toolbox-python@26d6469 · GitHub
[go: up one dir, main page]

Skip to content

Commit 26d6469

Browse files
committed
Try to fix bug with PyPlot teach panel failing after a while
1 parent d3b3c29 commit 26d6469

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

roboticstoolbox/backends/PyPlot/PyPlot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ def hold(self): # pragma: no cover
313313
plt.ioff()
314314

315315
try:
316-
plt.show()
316+
# plt.show()
317+
while True:
318+
self.step()
317319
except AttributeError:
318320
pass
319321

@@ -422,7 +424,7 @@ def update(val, text, robot): # pragma: no cover
422424
text_trans(text)
423425

424426
# Step the environment
425-
self.step(0)
427+
# self.step(0)
426428

427429
fig.subplots_adjust(left=0.25)
428430
text = []

0 commit comments

Comments
 (0)
0