Skip to content

Commit 98d1dd7

Browse files
committed
changed t to sim_time
1 parent 1dc8197 commit 98d1dd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roboticstoolbox/backends/PyPlot/PyPlot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def launch(self, name=None, limits=None):
125125
plt.ion()
126126
plt.show()
127127

128-
self.t = 0
128+
self.sim_time = 0
129129

130130
# # Set the signal handler and a 0.1 second plot updater
131131
# signal.signal(signal.SIGALRM, self._plot_handler)
@@ -165,9 +165,9 @@ def step(self, dt=0.05):
165165
self._set_axes_equal()
166166

167167
# update time and display it on plot
168-
if self.t > 0:
169-
self.timer.set_text(f"t = {self.t:.2f}")
170-
self.t += dt
168+
if self.sim_time > 0:
169+
self.timer.set_text(f"t = {self.sim_time:.2f}")
170+
self.sim_time += dt
171171

172172
# plt.ion()
173173

0 commit comments

Comments
 (0)