Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a62e7f3 commit b35fae6Copy full SHA for b35fae6
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