Skip to content

Commit f3ba281

Browse files
authored
Merge pull request #31466 from rcomer/basic-anim
DOC: make simple animation example easier to find
2 parents ec9a0ea + 9f28bd9 commit f3ba281

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

doc/sphinxext/gallery_order.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def __call__(self, item):
8282
"colors",
8383

8484
# **Examples**
85+
# animation
86+
"simple_anim", # Most basic example
8587
# color
8688
"color_demo",
8789
# pies

galleries/examples/animation/simple_anim.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
==================
3-
Animated line plot
4-
==================
2+
========================
3+
Basic animated line plot
4+
========================
55
66
Output generated via `matplotlib.animation.Animation.to_jshtml`.
77
"""
@@ -36,3 +36,9 @@ def animate(i):
3636
# ani.save("movie.mp4", writer=writer)
3737

3838
plt.show()
39+
40+
# %%
41+
#
42+
# .. tags::
43+
# component: animation,
44+
# level: beginner

0 commit comments

Comments
 (0)