Starts interactive animation. Adds the draw frame command to the GUI handler, calls show to start the event loop.
(self, *args)
| 922 | ) |
| 923 | |
| 924 | def _start(self, *args): |
| 925 | """ |
| 926 | Starts interactive animation. Adds the draw frame command to the GUI |
| 927 | handler, calls show to start the event loop. |
| 928 | """ |
| 929 | # Do not start the event source if saving() it. |
| 930 | if self._fig.canvas.is_saving(): |
| 931 | return |
| 932 | # First disconnect our draw event handler |
| 933 | self._fig.canvas.mpl_disconnect(self._first_draw_id) |
| 934 | # Now do any initial draw |
| 935 | self._init_draw() |
| 936 | # Actually start the event_source. |
| 937 | self.event_source.start() |
| 938 | |
| 939 | def _stop(self, *args): |
| 940 | # On stop we disconnect all of our events. |