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 eaf0c96

Browse filesBrowse files
committed
Add tags to the lines, bars, and markers examples
1 parent 97d3eec commit eaf0c96
Copy full SHA for eaf0c96

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

48 files changed

+305
-0
lines changed

‎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
@@ -136,3 +136,11 @@
136136
# :doc:`/gallery/subplots_axes_and_figures/axhspan_demo`.
137137

138138
plt.show()
139+
140+
# %%
141+
# .. tags::
142+
#
143+
# styling: alpha
144+
# plot-type: fill_between
145+
# level: intermediate
146+
# 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+
# prupose: 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/filled_step.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/filled_step.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,9 @@ def stack_hist(ax, stacked_data, sty_cycle, bottoms=None,
235235
# - `matplotlib.axes.Axes.fill_betweenx` / `matplotlib.pyplot.fill_betweenx`
236236
# - `matplotlib.axes.Axes.fill_between` / `matplotlib.pyplot.fill_between`
237237
# - `matplotlib.axis.Axis.set_major_locator`
238+
#
239+
# .. tags::
240+
#
241+
# plot-type: histogram
242+
# level: intermediate
243+
# purpose: showcase

‎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

‎galleries/examples/lines_bars_and_markers/multicolored_line.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/multicolored_line.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,11 @@ def colored_line_between_pts(x, y, c, ax, **lc_kwargs):
188188
ax2.set_title("Color between points")
189189

190190
plt.show()
191+
192+
# %%
193+
# .. tags::
194+
#
195+
# styling: color
196+
# styling: linestyle
197+
# plot-type: line
198+
# level: intermediate

‎galleries/examples/lines_bars_and_markers/multivariate_marker_plot.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/multivariate_marker_plot.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,11 @@
4545
ax.set_ylabel("Y position [m]")
4646

4747
plt.show()
48+
49+
# %%
50+
# .. tags::
51+
#
52+
# component: marker
53+
# styling: color
54+
# level: beginner
55+
# purpose: fun

‎galleries/examples/lines_bars_and_markers/psd_demo.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/psd_demo.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,10 @@
178178
ax1.set_ylim(yrange)
179179

180180
plt.show()
181+
182+
# %%
183+
# .. tags::
184+
#
185+
# domain: signal-processing
186+
# plot-type: line
187+
# level: intermediate

‎galleries/examples/lines_bars_and_markers/scatter_demo2.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/scatter_demo2.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,11 @@
3434
fig.tight_layout()
3535

3636
plt.show()
37+
38+
# %%
39+
# .. tags::
40+
#
41+
# component: marker
42+
# component: color
43+
# plot-style: scatter
44+
# level: beginner

‎galleries/examples/lines_bars_and_markers/scatter_hist.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/scatter_hist.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,10 @@ def scatter_hist(x, y, ax, ax_histx, ax_histy):
120120
# - `matplotlib.axes.Axes.inset_axes`
121121
# - `matplotlib.axes.Axes.scatter`
122122
# - `matplotlib.axes.Axes.hist`
123+
#
124+
# .. tags::
125+
#
126+
# component: axes
127+
# plot-type: scatter
128+
# plot-type: histogram
129+
# level: intermediate

‎galleries/examples/lines_bars_and_markers/scatter_masked.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/scatter_masked.py
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@
3030
plt.plot(r0 * np.cos(theta), r0 * np.sin(theta))
3131

3232
plt.show()
33+
34+
# %%
35+
# .. tags::
36+
#
37+
# component: marker
38+
# plot-type: scatter
39+
# level: beginner

‎galleries/examples/lines_bars_and_markers/scatter_star_poly.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/scatter_star_poly.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@
5151
axs[1, 2].set_title("marker=(5, 2)")
5252

5353
plt.show()
54+
55+
# %%
56+
# .. tags::
57+
#
58+
# component: marker
59+
# level: beginner

0 commit comments

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