Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3edda65

Browse files
authored
Merge pull request #29759 from rcomer/fun-tag
DOC: expand use of fun tag
2 parents 9f7b3dd + f33a4e5 commit 3edda65

File tree

7 files changed

+47
-0
lines changed

7 files changed

+47
-0
lines changed

galleries/examples/animation/rain.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,10 @@ def update(frame_number):
7272
# Construct the animation, using the update function as the animation director.
7373
animation = FuncAnimation(fig, update, interval=10, save_count=100)
7474
plt.show()
75+
76+
# %%
77+
# .. tags::
78+
#
79+
# component: animation
80+
# plot-type: scatter
81+
# purpose: fun

galleries/examples/animation/unchained.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,10 @@ def update(*args):
7474
# Construct the animation, using the update function as the animation director.
7575
anim = animation.FuncAnimation(fig, update, interval=10, save_count=100)
7676
plt.show()
77+
78+
# %%
79+
# .. tags::
80+
#
81+
# component: animation
82+
# plot-type: line
83+
# purpose: fun

galleries/examples/event_handling/pong_sgskip.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,3 +327,10 @@ def start_anim(event):
327327

328328
plt.show()
329329
print('FPS: %f' % (animation.cnt/(time.time() - tstart)))
330+
331+
#
332+
# %%
333+
# .. tags::
334+
#
335+
# interactivity: event-handling
336+
# purpose: fun

galleries/examples/images_contours_and_fields/barcode_demo.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,9 @@
4545
#
4646
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
4747
# - `matplotlib.figure.Figure.add_axes`
48+
#
49+
# .. tags::
50+
#
51+
# component: axes
52+
# plot-type: imshow
53+
# purpose: fun

galleries/examples/shapes_and_collections/dolphin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,9 @@
119119
# - `matplotlib.transforms`
120120
# - `matplotlib.transforms.Affine2D`
121121
# - `matplotlib.transforms.Affine2D.rotate_deg`
122+
#
123+
# .. tags::
124+
#
125+
# component: patch
126+
# styling: shape
127+
# purpose: fun

galleries/examples/shapes_and_collections/donut.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,9 @@ def make_circle(r):
8181
# - `matplotlib.axes.Axes.set_xlim`
8282
# - `matplotlib.axes.Axes.set_ylim`
8383
# - `matplotlib.axes.Axes.set_title`
84+
#
85+
# .. tags::
86+
#
87+
# component: patch
88+
# styling: shape
89+
# purpose: fun

galleries/examples/showcase/xkcd.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,11 @@
6262
ha='center')
6363

6464
plt.show()
65+
66+
#
67+
# %%
68+
# .. tags::
69+
#
70+
# plot-type: line
71+
# plot-type: bar
72+
# purpose: fun

0 commit comments

Comments
 (0)