Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Dec 14, 2023
1 parent 1dd76f5 commit 84e6bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tether_05.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def plot2d(fig, y, reltime, segments, line, sc, txt):
return line, sc, txt

def play(duration, y):
dt = 0.2
dt = 0.15
plt.ioff()
fig = plt.figure()
plt.ylim(-SEGMENTS*L0-10, 0.5)
Expand All @@ -128,7 +128,7 @@ def play(duration, y):
line, sc, txt = None, None, None
for t in np.linspace(0, duration, num=round(duration/dt)+1):
line, sc, txt = plot2d(fig, y, t, SEGMENTS, line, sc, txt)
time.sleep(0.05)
time.sleep(dt/2)
plt.show()

def run_example():
Expand Down

0 comments on commit 84e6bd4

Please sign in to comment.