Skip to content

Commit 0ce5259

Browse files
committed
Merge pull request #3555 from cimarronm/timer_example_docfix
MNT : Typo in comment documentation for example timers.py
2 parents a62e7f3 + b35fae6 commit 0ce5259

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/event_handling/timers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ def update_title(axes):
1313
x = np.linspace(-3, 3)
1414
ax.plot(x, x*x)
1515

16-
# Create a new timer object. Set the interval 500 milliseconds (1000 is default)
17-
# and tell the timer what function should be called.
16+
# Create a new timer object. Set the interval to 100 milliseconds
17+
# (1000 is default) and tell the timer what function should be called.
1818
timer = fig.canvas.new_timer(interval=100)
1919
timer.add_callback(update_title, ax)
2020
timer.start()
2121

22-
#Or could start the timer on first figure draw
22+
# Or could start the timer on first figure draw
2323
#def start_timer(evt):
2424
# timer.start()
2525
# fig.canvas.mpl_disconnect(drawid)

0 commit comments

Comments
 (0)