Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9a0b72a

Browse files
authored
Merge pull request#24897 from luke396/add-generate-ref-issue-24673
DOC: Add ref for every example under examples/animation
2 parents7bc69f2 +b1b2796 commit9a0b72a

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
importitertools

‎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
importmatplotlib.pyplotasplt

‎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
importmath

‎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
fromnumpyimportsin,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
importnumpyasnp

‎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
importnumpyasnp

‎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
importnumpyasnp

‎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
importmatplotlib.pyplotasplt

‎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
importnumpyasnp

‎examples/animation/random_walk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Animated 3D random walk
44
=======================
55
6+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
67
"""
78

89
importnumpyasnp

‎examples/animation/simple_anim.py

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

89
importnumpyasnp

‎examples/animation/simple_scatter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Animated scatter saved as GIF
44
=============================
55
6+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
67
"""
78
importnumpyasnp
89
importmatplotlib.pyplotasplt

‎examples/animation/strip_chart.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
============
55
66
Emulates an oscilloscope.
7+
8+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
79
"""
810

911
importnumpyasnp

‎examples/animation/unchained.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
(mostly known because of the cover for Joy Division's Unknown Pleasures).
88
99
Author: Nicolas P. Rougier
10+
11+
Output generate via `matplotlib.animation.Animation.to_jshtml`.
1012
"""
1113

1214
importnumpyasnp

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp