Skip to content

Commit 9a0b72a

Browse files
authored
Merge pull request #24897 from luke396/add-generate-ref-issue-24673
DOC: Add ref for every example under examples/animation
2 parents 7bc69f2 + b1b2796 commit 9a0b72a

15 files changed

+26
-0
lines changed

examples/animation/animate_decay.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
88
- using a generator to drive an animation,
99
- changing axes limits during an animation.
10+
11+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
1012
"""
1113

1214
import itertools

examples/animation/animated_histogram.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def animate(frame_number):
4545
# ``prepare_animation`` will define ``animate`` function working with supplied
4646
# `.BarContainer`, all this is used to setup `.FuncAnimation`.
4747

48+
# Output generate via `matplotlib.animation.Animation.to_jshtml`.
49+
4850
fig, ax = plt.subplots()
4951
_, _, bar_container = ax.hist(data, HIST_BINS, lw=1,
5052
ec="yellow", fc="green", alpha=0.5)

examples/animation/animation_demo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
examples that use it.
1111
1212
Note that calling `time.sleep` instead of `~.pyplot.pause` would *not* work.
13+
14+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
1315
"""
1416

1517
import matplotlib.pyplot as plt

examples/animation/bayes_update.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
new data arrives.
88
The vertical line represents the theoretical value to which the plotted
99
distribution should converge.
10+
11+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
1012
"""
1113

1214
import math

examples/animation/double_pendulum.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
88
Double pendulum formula translated from the C code at
99
http://www.physics.usyd.edu.au/~wheat/dpend_html/solve_dpend.c
10+
11+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
1012
"""
1113

1214
from numpy import sin, cos

examples/animation/dynamic_image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Animated image using a precomputed list of images
44
=================================================
55
6+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
67
"""
78

89
import numpy as np

examples/animation/frame_grabbing_sgskip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
Use a MovieWriter directly to grab individual frames and write them to a
77
file. This avoids any event loop integration, and thus works even with the Agg
88
backend. This is not recommended for use in an interactive setting.
9+
10+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
911
"""
1012

1113
import numpy as np

examples/animation/multiple_axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
88
- how animation across multiple subplots works,
99
- using a figure artist in the animation.
10+
11+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
1012
"""
1113

1214
import numpy as np

examples/animation/pause_resume.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
1616
You can copy and paste individual parts, or download the entire example
1717
using the link at the bottom of the page.
18+
19+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
1820
"""
1921

2022
import matplotlib.pyplot as plt

examples/animation/rain.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
of 50 scatter points.
88
99
Author: Nicolas P. Rougier
10+
11+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
1012
"""
1113

1214
import numpy as np

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy