We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a62e7f3 + b35fae6 commit 0ce5259Copy full SHA for 0ce5259
examples/event_handling/timers.py
@@ -13,13 +13,13 @@ def update_title(axes):
13
x = np.linspace(-3, 3)
14
ax.plot(x, x*x)
15
16
-# Create a new timer object. Set the interval 500 milliseconds (1000 is default)
17
-# and tell the timer what function should be called.
+# Create a new timer object. Set the interval to 100 milliseconds
+# (1000 is default) and tell the timer what function should be called.
18
timer = fig.canvas.new_timer(interval=100)
19
timer.add_callback(update_title, ax)
20
timer.start()
21
22
-#Or could start the timer on first figure draw
+# Or could start the timer on first figure draw
23
#def start_timer(evt):
24
# timer.start()
25
# fig.canvas.mpl_disconnect(drawid)
0 commit comments