Skip to content

Commit 3b3576d

Browse files
dihmQuLogic
andauthored
Adding tags to many examples (matplotlib#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

File tree

97 files changed

+633
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+633
-0
lines changed

galleries/examples/color/color_by_yvalue.py

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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

Lines 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

0 commit comments

Comments
 (0)