Commit b638f92
committed
Cleanup animation examples
I thought that the animation examples section was a bit of an
unstructured mess so I tried to reorganize it somewhat. The new list of
examples is
simple examples
===============
animation_demo: plt.pause example
simple_anim: FuncAnimation example
dynamic_image: FuncAnimation example
dynamic_image2: ArtistAnimation example
intermediate examples
=====================
strip_chart: FuncAnimation example
advanced examples
=================
histogram: animating a composite artist (namely, a histogram)
nice examples
=============
bayes: FuncAnimation example
double_pendulum: FuncAnimation example, skipped as needing scipy
random_walk (renamed from simple_3danim): FuncAnimation example
rain: FuncAnimation example
unchained: FuncAnimation example
movie writing
=============
frame_grabbing_sgskip (renamed from moviewriter_sgskip.py)
removed
=======
animate_decay: overlaps with simple_anim
basic_example: equivalent to {simple_anim + dynamic_image2}
basic_example_writer_sgskip: split as comments to
simple_anim/dynamic_image/dynamic_image2
random_data: overlaps with simple_anim, though using a generator
subplots: relies on subclassing private attributes of TimedAnimation, would
better be replaced by a FuncAnimation example, overly complex1 parent 4f9458d commit b638f92
18 files changed
Lines changed: 94 additions & 385 deletions
File tree
- doc
- api
- users/prev_whats_new
- examples/animation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | | - | |
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
| |||
122 | 119 | | |
123 | 120 | | |
124 | 121 | | |
125 | | - | |
126 | 122 | | |
127 | 123 | | |
128 | 124 | | |
129 | 125 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 126 | | |
134 | 127 | | |
135 | 128 | | |
136 | 129 | | |
137 | 130 | | |
138 | 131 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 132 | + | |
| 133 | + | |
142 | 134 | | |
143 | 135 | | |
144 | 136 | | |
145 | | - | |
146 | | - | |
| 137 | + | |
147 | 138 | | |
148 | | - | |
| 139 | + | |
149 | 140 | | |
150 | 141 | | |
151 | 142 | | |
152 | 143 | | |
153 | 144 | | |
154 | | - | |
155 | 145 | | |
156 | 146 | | |
157 | 147 | | |
158 | 148 | | |
159 | 149 | | |
160 | 150 | | |
161 | | - | |
162 | | - | |
163 | 151 | | |
164 | 152 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 153 | | |
169 | 154 | | |
170 | 155 | | |
171 | | - | |
172 | | - | |
173 | 156 | | |
174 | 157 | | |
175 | 158 | | |
| |||
179 | 162 | | |
180 | 163 | | |
181 | 164 | | |
182 | | - | |
183 | 165 | | |
184 | 166 | | |
185 | 167 | | |
| |||
196 | 178 | | |
197 | 179 | | |
198 | 180 | | |
199 | | - | |
200 | 181 | | |
201 | 182 | | |
202 | 183 | | |
| |||
215 | 196 | | |
216 | 197 | | |
217 | 198 | | |
218 | | - | |
219 | | - | |
220 | | - | |
| 199 | + | |
| 200 | + | |
221 | 201 | | |
222 | 202 | | |
223 | 203 | | |
224 | 204 | | |
225 | 205 | | |
226 | 206 | | |
227 | | - | |
228 | 207 | | |
229 | 208 | | |
| 209 | + | |
| 210 | + | |
230 | 211 | | |
231 | | - | |
| 212 | + | |
| 213 | + | |
232 | 214 | | |
| 215 | + | |
233 | 216 | | |
234 | 217 | | |
235 | 218 | | |
236 | 219 | | |
237 | 220 | | |
238 | 221 | | |
239 | | - | |
240 | 222 | | |
241 | 223 | | |
242 | 224 | | |
243 | | - | |
244 | 225 | | |
245 | 226 | | |
246 | 227 | | |
247 | 228 | | |
248 | 229 | | |
249 | 230 | | |
250 | 231 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | 232 | | |
258 | 233 | | |
259 | 234 | | |
| |||
280 | 255 | | |
281 | 256 | | |
282 | 257 | | |
283 | | - | |
| 258 | + | |
284 | 259 | | |
285 | 260 | | |
286 | 261 | | |
| |||
290 | 265 | | |
291 | 266 | | |
292 | 267 | | |
293 | | - | |
294 | | - | |
| 268 | + | |
295 | 269 | | |
| 270 | + | |
296 | 271 | | |
297 | 272 | | |
298 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
50 | | - | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | 97 | | |
0 commit comments