Commit 77d9500
committed
Fix tkagg animation error at exit.
Apparently, with a small enough animation interval, tk does not have
the time to fully proceed through FigureManagerTkAgg.show before the
animation takes over. Removing the call to self.window.update (which
had been added back in 2004 (6c96389), but seems unnecessary (including
on Windows)) fixes the issue.
Also update the animation example so that it can serve as manual test
for the issue; changed the rate at which the data moves to keep it
reasonable, and switched to None (= count()) as index iterable to avoid
a jump every time we reach the end of the indices.1 parent 6336f2d commit 77d9500
2 files changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
559 | | - | |
560 | 558 | | |
561 | 559 | | |
562 | 560 | | |
| |||
0 commit comments