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

Appearance settings

Commit 3b3576d

Browse filesBrowse files
dihmQuLogic
andauthored
Adding tags to many examples (#28569)
* Add example tags to the color examples directory * Add example tags to the pie and polar examples * Add tags to the subplots, axes, and figures examples * Add tags to the lines, bars, and markers examples * Add missing newline at end of joinstyle.py example * Fix typos in tag directives. * Fix rogue capitalization in tag of two_scales.py * Fix typo Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com> --------- Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent a70d650 commit 3b3576d
Copy full SHA for 3b3576d

File tree

Expand file treeCollapse file tree

97 files changed

+633
-0
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

97 files changed

+633
-0
lines changed

‎galleries/examples/color/color_by_yvalue.py

Copy file name to clipboardExpand all lines: galleries/examples/color/color_by_yvalue.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@
3030
# in this example:
3131
#
3232
# - `matplotlib.axes.Axes.plot` / `matplotlib.pyplot.plot`
33+
#
34+
# .. tags::
35+
#
36+
# styling: color
37+
# styling: conditional
38+
# plot-type: line
39+
# level: beginner

‎galleries/examples/color/color_cycle_default.py

Copy file name to clipboardExpand all lines: galleries/examples/color/color_cycle_default.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,10 @@
5050
# - `matplotlib.axes.Axes.axvline` / `matplotlib.pyplot.axvline`
5151
# - `matplotlib.axes.Axes.set_facecolor`
5252
# - `matplotlib.figure.Figure.suptitle`
53+
#
54+
# .. tags::
55+
#
56+
# styling: color
57+
# styling: colormap
58+
# plot-type: line
59+
# level: beginner

‎galleries/examples/color/color_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/color/color_demo.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@
7575
# - `matplotlib.axes.Axes.set_xlabel`
7676
# - `matplotlib.axes.Axes.set_ylabel`
7777
# - `matplotlib.axes.Axes.tick_params`
78+
#
79+
# .. tags::
80+
#
81+
# styling: color
82+
# plot-type: line
83+
# level: beginner

‎galleries/examples/color/colorbar_basics.py

Copy file name to clipboardExpand all lines: galleries/examples/color/colorbar_basics.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,10 @@
5656
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
5757
# - `matplotlib.colorbar.Colorbar.minorticks_on`
5858
# - `matplotlib.colorbar.Colorbar.minorticks_off`
59+
#
60+
# .. tags::
61+
#
62+
# component: colorbar
63+
# styling: color
64+
# plot-type: imshow
65+
# level: beginner

‎galleries/examples/color/colormap_reference.py

Copy file name to clipboardExpand all lines: galleries/examples/color/colormap_reference.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,8 @@ def plot_color_gradients(cmap_category, cmap_list):
9595
# - `matplotlib.axes.Axes.imshow`
9696
# - `matplotlib.figure.Figure.text`
9797
# - `matplotlib.axes.Axes.set_axis_off`
98+
#
99+
# .. tags::
100+
#
101+
# styling: colormap
102+
# purpose: reference

‎galleries/examples/color/custom_cmap.py

Copy file name to clipboardExpand all lines: galleries/examples/color/custom_cmap.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,9 @@
280280
# - `matplotlib.cm`
281281
# - `matplotlib.cm.ScalarMappable.set_cmap`
282282
# - `matplotlib.cm.ColormapRegistry.register`
283+
#
284+
# .. tags::
285+
#
286+
# styling: colormap
287+
# plot-type: imshow
288+
# level: intermediate

‎galleries/examples/color/individual_colors_from_cmap.py

Copy file name to clipboardExpand all lines: galleries/examples/color/individual_colors_from_cmap.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,10 @@
6363
#
6464
# - `matplotlib.colors.Colormap`
6565
# - `matplotlib.colors.Colormap.resampled`
66+
#
67+
# .. tags::
68+
#
69+
# component: colormap
70+
# styling: color
71+
# plot-type: line
72+
# level: intermediate

‎galleries/examples/color/named_colors.py

Copy file name to clipboardExpand all lines: galleries/examples/color/named_colors.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,8 @@ def plot_colortable(colors, *, ncols=4, sort_colors=True):
121121
# - `matplotlib.figure.Figure.subplots_adjust`
122122
# - `matplotlib.axes.Axes.text`
123123
# - `matplotlib.patches.Rectangle`
124+
#
125+
# .. tags::
126+
#
127+
# styling: color
128+
# purpose: reference

‎galleries/examples/color/set_alpha.py

Copy file name to clipboardExpand all lines: galleries/examples/color/set_alpha.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@
5151
#
5252
# - `matplotlib.axes.Axes.bar`
5353
# - `matplotlib.pyplot.subplots`
54+
#
55+
# .. tags::
56+
#
57+
# styling: color
58+
# plot-type: bar
59+
# level: beginner

‎galleries/examples/lines_bars_and_markers/bar_colors.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/bar_colors.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@
2424
ax.legend(title='Fruit color')
2525

2626
plt.show()
27+
28+
# %%
29+
# .. tags::
30+
#
31+
# styling: color
32+
# plot-style: bar
33+
# level: beginner

‎galleries/examples/lines_bars_and_markers/bar_label_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/bar_label_demo.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,9 @@
118118
# - `matplotlib.axes.Axes.bar` / `matplotlib.pyplot.bar`
119119
# - `matplotlib.axes.Axes.barh` / `matplotlib.pyplot.barh`
120120
# - `matplotlib.axes.Axes.bar_label` / `matplotlib.pyplot.bar_label`
121+
#
122+
# .. tags::
123+
#
124+
# component: label
125+
# plot-type: bar
126+
# level: beginner

‎galleries/examples/lines_bars_and_markers/bar_stacked.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/bar_stacked.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@
3434
ax.legend(loc="upper right")
3535

3636
plt.show()
37+
38+
# %%
39+
# .. tags::
40+
#
41+
# plot-type: bar
42+
# level: beginner

‎galleries/examples/lines_bars_and_markers/barchart.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/barchart.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@
4949
#
5050
# - `matplotlib.axes.Axes.bar` / `matplotlib.pyplot.bar`
5151
# - `matplotlib.axes.Axes.bar_label` / `matplotlib.pyplot.bar_label`
52+
#
53+
# .. tags::
54+
#
55+
# component: label
56+
# plot-type: bar
57+
# level: beginner

‎galleries/examples/lines_bars_and_markers/barh.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/barh.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@
2626
ax.set_title('How fast do you want to go today?')
2727

2828
plt.show()
29+
30+
# %%
31+
# .. tags::
32+
#
33+
# plot-type: bar
34+
# level: beginner

‎galleries/examples/lines_bars_and_markers/broken_barh.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/broken_barh.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@
2424
horizontalalignment='right', verticalalignment='top')
2525

2626
plt.show()
27+
28+
# %%
29+
# .. tags::
30+
#
31+
# component: annotation
32+
# plot-type: bar
33+
# level: beginner

‎galleries/examples/lines_bars_and_markers/capstyle.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/capstyle.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@
1414

1515
CapStyle.demo()
1616
plt.show()
17+
18+
# %%
19+
# .. tags::
20+
#
21+
# purpose: reference

‎galleries/examples/lines_bars_and_markers/categorical_variables.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/categorical_variables.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@
3232
ax.legend()
3333

3434
plt.show()
35+
36+
# %%
37+
# .. tags::
38+
#
39+
# plot-type: specialty
40+
# level: beginner

‎galleries/examples/lines_bars_and_markers/cohere.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/cohere.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,10 @@
3131
axs[1].set_ylabel('Coherence')
3232

3333
plt.show()
34+
35+
# %%
36+
# .. tags::
37+
#
38+
# domain: signal-processing
39+
# plot-type: line
40+
# level: beginner

‎galleries/examples/lines_bars_and_markers/csd_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/csd_demo.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,10 @@
3838
ax2.set_ylabel('CSD (dB)')
3939

4040
plt.show()
41+
42+
# %%
43+
# .. tags::
44+
#
45+
# domain: signal-processing
46+
# plot-type: line
47+
# level: beginner

‎galleries/examples/lines_bars_and_markers/curve_error_band.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/curve_error_band.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,9 @@ def draw_error_band(ax, x, y, err, **kwargs):
8585
#
8686
# - `matplotlib.patches.PathPatch`
8787
# - `matplotlib.path.Path`
88+
#
89+
# .. tags::
90+
#
91+
# component: error
92+
# plot-type: line
93+
# level: intermediate

‎galleries/examples/lines_bars_and_markers/errorbar_limits_simple.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/errorbar_limits_simple.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@
6060
# in this example:
6161
#
6262
# - `matplotlib.axes.Axes.errorbar` / `matplotlib.pyplot.errorbar`
63+
#
64+
# .. tags::
65+
#
66+
# component: error
67+
# plot-type: errorbar
68+
# level: beginner

‎galleries/examples/lines_bars_and_markers/errorbar_subsample.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/errorbar_subsample.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,10 @@
3838

3939
fig.suptitle('Errorbar subsampling')
4040
plt.show()
41+
42+
# %%
43+
# .. tags::
44+
#
45+
# component: error
46+
# plot-type: errorbar
47+
# level: beginner

‎galleries/examples/lines_bars_and_markers/eventcollection_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/eventcollection_demo.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@
6060

6161
# display the plot
6262
plt.show()
63+
64+
# %%
65+
# .. tags::
66+
#
67+
# plot-type: eventplot
68+
# level: intermediate

‎galleries/examples/lines_bars_and_markers/eventplot_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/eventplot_demo.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,10 @@
6060
linelengths=linelengths2, orientation='vertical')
6161

6262
plt.show()
63+
64+
# %%
65+
# .. tags::
66+
#
67+
# plot-type: eventplot
68+
# level: beginner
69+
# purpose: showcase

‎galleries/examples/lines_bars_and_markers/fill.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/fill.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,9 @@ def _koch_snowflake_complex(order):
8585
#
8686
# - `matplotlib.axes.Axes.fill` / `matplotlib.pyplot.fill`
8787
# - `matplotlib.axes.Axes.axis` / `matplotlib.pyplot.axis`
88+
#
89+
# .. tags::
90+
#
91+
# styling: shape
92+
# level: beginner
93+
# purpose: showcase

‎galleries/examples/lines_bars_and_markers/fill_between_alpha.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/fill_between_alpha.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,11 @@
137137
# :doc:`/gallery/subplots_axes_and_figures/axhspan_demo`.
138138

139139
plt.show()
140+
141+
# %%
142+
# .. tags::
143+
#
144+
# styling: alpha
145+
# plot-type: fill_between
146+
# level: intermediate
147+
# purpose: showcase

‎galleries/examples/lines_bars_and_markers/fill_between_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/fill_between_demo.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,10 @@
139139
#
140140
# - `matplotlib.axes.Axes.fill_between` / `matplotlib.pyplot.fill_between`
141141
# - `matplotlib.axes.Axes.get_xaxis_transform`
142+
#
143+
# .. tags::
144+
#
145+
# styling: conditional
146+
# plot-type: fill_between
147+
# level: beginner
148+
# purpose: showcase

‎galleries/examples/lines_bars_and_markers/fill_betweenx_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/fill_betweenx_demo.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@
5252
# would be to interpolate all arrays to a very fine grid before plotting.
5353

5454
plt.show()
55+
56+
# %%
57+
# .. tags::
58+
#
59+
# plot-type: fill_between
60+
# level: beginner

‎galleries/examples/lines_bars_and_markers/gradient_bar.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/gradient_bar.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,11 @@ def gradient_bar(ax, x, y, width=0.5, bottom=0):
7171
y = np.random.rand(N)
7272
gradient_bar(ax, x, y, width=0.7)
7373
plt.show()
74+
75+
# %%
76+
# .. tags::
77+
#
78+
# styling: color
79+
# plot-type: imshow
80+
# level: intermediate
81+
# purpose: showcase

‎galleries/examples/lines_bars_and_markers/hat_graph.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/hat_graph.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,9 @@ def label_bars(heights, rects):
7878
#
7979
# - `matplotlib.axes.Axes.bar` / `matplotlib.pyplot.bar`
8080
# - `matplotlib.axes.Axes.annotate` / `matplotlib.pyplot.annotate`
81+
#
82+
# .. tags::
83+
#
84+
# component: annotate
85+
# plot-type: bar
86+
# level: beginner

‎galleries/examples/lines_bars_and_markers/horizontal_barchart_distribution.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/horizontal_barchart_distribution.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,10 @@ def survey(results, category_names):
7878
# - `matplotlib.axes.Axes.barh` / `matplotlib.pyplot.barh`
7979
# - `matplotlib.axes.Axes.bar_label` / `matplotlib.pyplot.bar_label`
8080
# - `matplotlib.axes.Axes.legend` / `matplotlib.pyplot.legend`
81+
#
82+
# .. tags::
83+
#
84+
# domain: statistics
85+
# component: label
86+
# plot-type: bar
87+
# level: beginner

‎galleries/examples/lines_bars_and_markers/joinstyle.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/joinstyle.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@
1414

1515
JoinStyle.demo()
1616
plt.show()
17+
18+
# %%
19+
# .. tags:: purpose: reference, styling: linestyle

‎galleries/examples/lines_bars_and_markers/line_demo_dash_control.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/line_demo_dash_control.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@
4747

4848
ax.legend(handlelength=4)
4949
plt.show()
50+
51+
# %%
52+
# .. tags::
53+
#
54+
# styling: linestyle
55+
# plot-style: line
56+
# level: beginner

‎galleries/examples/lines_bars_and_markers/lines_with_ticks_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/lines_with_ticks_demo.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@
3030
ax.legend()
3131

3232
plt.show()
33+
34+
# %%
35+
# .. tags::
36+
#
37+
# styling: linestyle
38+
# plot-type: line
39+
# level: beginner

‎galleries/examples/lines_bars_and_markers/linestyles.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/linestyles.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ def plot_linestyles(ax, linestyles, title):
7373

7474
plt.tight_layout()
7575
plt.show()
76+
77+
# %%
78+
# .. tags::
79+
#
80+
# styling: linestyle
81+
# purpose: reference

‎galleries/examples/lines_bars_and_markers/marker_reference.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/marker_reference.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,9 @@ def split_list(a_list):
240240
format_axes(ax)
241241

242242
plt.show()
243+
244+
# %%
245+
# .. tags::
246+
#
247+
# component: marker
248+
# purpose: reference

‎galleries/examples/lines_bars_and_markers/markevery_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/markevery_demo.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,10 @@
9696
ax.plot(theta, r, 'o', ls='-', ms=4, markevery=markevery)
9797

9898
plt.show()
99+
100+
# %%
101+
# .. tags::
102+
#
103+
# component: marker
104+
# plot-type: line
105+
# level: beginner

‎galleries/examples/lines_bars_and_markers/masked_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/masked_demo.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,9 @@
4848
plt.legend()
4949
plt.title('Masked and NaN data')
5050
plt.show()
51+
52+
# %%
53+
# .. tags::
54+
#
55+
# plot-type: line
56+
# level: intermediate

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.