8000 review comments on pause/resume animation example · matplotlib/matplotlib@408331a · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 408331a

Browse files
committed
review comments on pause/resume animation example
1 parent 29d38c2 commit 408331a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Pausing and Resuming Animations
22
-------------------------------
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
76
control UI.

examples/animation/pause_resume.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
==================================
3-
Pausing and Resuming and Animation
4-
==================================
2+
=================================
3+
Pausing and Resuming an Animation
4+
=================================
55
6-
This example showscases:
6+
This example showcases:
77
- using the Animation.pause() method to pause an animation.
88
- using the Animation.resume() method to resume an animation.
99
"""
@@ -16,7 +16,7 @@
1616
class PauseAnimation:
1717
def __init__(self):
1818
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')
2020
x = np.linspace(-0.1, 0.1, 1000)
2121

2222
# Start with a normal distribution

0 commit comments

Comments
 (0)
0