File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
Pausing and Resuming Animations
2
2
-------------------------------
3
- We have added public `pause() ` and `resume() ` methods to the base
4
- matplotlib.animation.Animation class that allows you to, well, pause
5
- and resume animations. These methods can be used as callbacks for event
6
- listeners on UI elements so that your plots can have some playback
3
+ The `.animation.Animation.pause ` and `.animation.Animation.resume ` methods
4
+ allow you to pause and resume animations. These methods can be used as callbacks
5
+ for event listeners on UI elements so that your plots can have some playback
7
6
control UI.
Original file line number Diff line number Diff line change 1
1
"""
2
- ==================================
3
- Pausing and Resuming and Animation
4
- ==================================
2
+ =================================
3
+ Pausing and Resuming an Animation
4
+ =================================
5
5
6
- This example showscases :
6
+ This example showcases :
7
7
- using the Animation.pause() method to pause an animation.
8
8
- using the Animation.resume() method to resume an animation.
9
9
"""
16
16
class PauseAnimation :
17
17
def __init__ (self ):
18
18
fig , ax = plt .subplots ()
19
- ax .title . set_text ('Click to pause/resume the animation' )
19
+ ax .set_title ('Click to pause/resume the animation' )
20
20
x = np .linspace (- 0.1 , 0.1 , 1000 )
21
21
22
22
# Start with a normal distribution
You can’t perform that action at this time.
0 commit comments