Skip to content

Commit 3c7bc45

Browse files
Merge pull request #28568 from farquh/'tagging_mplot3d'
added tags to mplot3d examples
2 parents fcd13d0 + f5abe2c commit 3c7bc45

Some content is hidden

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

43 files changed

+242
-0
lines changed

galleries/examples/mplot3d/2dcollections3d.py

+6
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,9 @@
4646
ax.view_init(elev=20., azim=-35, roll=0)
4747

4848
plt.show()
49+
50+
# %%
51+
# .. tags::
52+
# plot-type: 3D, plot-type: scatter, plot-type: line,
53+
# component: axes,
54+
# level: intermediate

galleries/examples/mplot3d/3d_bars.py

+7
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,10 @@
3131
ax2.set_title('Not Shaded')
3232

3333
plt.show()
34+
35+
# %%
36+
# .. tags::
37+
# plot-type: 3D,
38+
# styling: texture,
39+
# plot-type: bar,
40+
# level: beginner

galleries/examples/mplot3d/bars3d.py

+6
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,9 @@
4040
ax.set_yticks(yticks)
4141

4242
plt.show()
43+
44+
# %%
45+
# .. tags::
46+
# plot-type: 3D, plot-type: bar,
47+
# styling: color,
48+
# level: beginner

galleries/examples/mplot3d/box3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@
7676

7777
# Show Figure
7878
plt.show()
79+
80+
# %%
81+
# .. tags::
82+
# plot-type: 3D,
83+
# level: intermediate

galleries/examples/mplot3d/contour3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@
1818
ax.contour(X, Y, Z, cmap=cm.coolwarm) # Plot contour curves
1919

2020
plt.show()
21+
22+
# %%
23+
# .. tags::
24+
# plot-type: 3D,
25+
# level: beginner

galleries/examples/mplot3d/contour3d_2.py

+5
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@
1717
ax.contour(X, Y, Z, extend3d=True, cmap=cm.coolwarm)
1818

1919
plt.show()
20+
21+
# %%
22+
# .. tags::
23+
# plot-type: 3D,
24+
# level: beginner

galleries/examples/mplot3d/contour3d_3.py

+6
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@
2929
xlabel='X', ylabel='Y', zlabel='Z')
3030

3131
plt.show()
32+
33+
# %%
34+
# .. tags::
35+
# plot-type: 3D,
36+
# component: axes,
37+
# level: intermediate

galleries/examples/mplot3d/contourf3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@
2020
ax.contourf(X, Y, Z, cmap=cm.coolwarm)
2121

2222
plt.show()
23+
24+
# %%
25+
# .. tags::
26+
# plot-type: 3D,
27+
# level: beginner

galleries/examples/mplot3d/contourf3d_2.py

+6
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@
2929
xlabel='X', ylabel='Y', zlabel='Z')
3030

3131
plt.show()
32+
33+
# %%
34+
# .. tags::
35+
# plot-type: 3D,
36+
# component: axes,
37+
# level: intermediate

galleries/examples/mplot3d/custom_shaded_3d_surface.py

+6
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@
3434
linewidth=0, antialiased=False, shade=False)
3535

3636
plt.show()
37+
38+
# %%
39+
# .. tags::
40+
# plot-type: 3D,
41+
# level: intermediate,
42+
# domain: cartography

galleries/examples/mplot3d/errorbar3d.py

+6
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@
2727
ax.set_zlabel("Z label")
2828

2929
plt.show()
30+
31+
# %%
32+
# .. tags::
33+
# plot-type: 3D,
34+
# component: error,
35+
# level: beginner

galleries/examples/mplot3d/hist3d.py

+6
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@
3131
ax.bar3d(xpos, ypos, zpos, dx, dy, dz, zsort='average')
3232

3333
plt.show()
34+
35+
36+
# %%
37+
# .. tags::
38+
# plot-type: 3D, plot-type: histogram,
39+
# level: beginner

galleries/examples/mplot3d/imshow3d.py

+6
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,9 @@ def imshow3d(ax, array, value_direction='z', pos=0, norm=None, cmap=None):
8686
imshow3d(ax, data_zx, value_direction='y', pos=ny, cmap='plasma')
8787

8888
plt.show()
89+
90+
# %%
91+
# .. tags::
92+
# plot-type: 3D,
93+
# styling: colormap,
94+
# level: advanced

galleries/examples/mplot3d/intersecting_planes.py

+6
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,9 @@ def figure_3D_array_slices(array, cmap=None):
8787

8888
figure_3D_array_slices(r_square, cmap='viridis_r')
8989
plt.show()
90+
91+
92+
# %%
93+
# .. tags::
94+
# plot-type: 3D,
95+
# level: advanced

galleries/examples/mplot3d/lines3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@
2222
ax.legend()
2323

2424
plt.show()
25+
26+
# %%
27+
# .. tags::
28+
# plot-type: 3D,
29+
# level: beginner

galleries/examples/mplot3d/lorenz_attractor.py

+5
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,8 @@ def lorenz(xyz, *, s=10, r=28, b=2.667):
5959
ax.set_title("Lorenz Attractor")
6060

6161
plt.show()
62+
63+
# %%
64+
# .. tags::
65+
# plot-type: 3D,
66+
# level: intermediate

galleries/examples/mplot3d/mixed_subplots.py

+6
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ def f(t):
4444
ax.set_zlim(-1, 1)
4545

4646
plt.show()
47+
48+
# %%
49+
# .. tags::
50+
# plot-type: 3D,
51+
# component: subplot,
52+
# level: beginner

galleries/examples/mplot3d/offset.py

+7
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,10 @@
2929
ax.set_zlim(0, 2)
3030

3131
plt.show()
32+
33+
# %%
34+
# .. tags::
35+
# plot-type: 3D,
36+
# component: label,
37+
# interactivity: pan,
38+
# level: beginner

galleries/examples/mplot3d/pathpatch3d.py

+6
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,9 @@ def text3d(ax, xyz, s, zdir="z", size=None, angle=0, usetex=False, **kwargs):
6969
ax.set_zlim(0, 10)
7070

7171
plt.show()
72+
73+
# %%
74+
# .. tags::
75+
# plot-type: 3D,
76+
# component: label,
77+
# level: advanced

galleries/examples/mplot3d/polys3d.py

+6
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@
3333
ax.set_aspect('equalxy')
3434

3535
plt.show()
36+
37+
# %%
38+
# .. tags::
39+
# plot-type: 3D,
40+
# styling: colormap,
41+
# level: intermediate

galleries/examples/mplot3d/projections.py

+7
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,10 @@
5353
axs[2].set_title("'persp'\nfocal_length = 0.2", fontsize=10)
5454

5555
plt.show()
56+
57+
# %%
58+
# .. tags::
59+
# plot-type: 3D,
60+
# styling: small-multiples,
61+
# component: subplot,
62+
# level: intermediate

galleries/examples/mplot3d/quiver3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@
2525
ax.quiver(x, y, z, u, v, w, length=0.1, normalize=True)
2626

2727
plt.show()
28+
29+
# %%
30+
# .. tags::
31+
# plot-type: 3D,
32+
# level: beginner

galleries/examples/mplot3d/rotate_axes3d_sgskip.py

+7
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,10 @@
4949

5050
plt.draw()
5151
plt.pause(.001)
52+
53+
# %%
54+
# .. tags::
55+
# plot-type: 3D,
56+
# component: animation,
57+
# level: advanced,
58+
# internal: high-bandwidth

galleries/examples/mplot3d/scatter3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ def randrange(n, vmin, vmax):
3838
ax.set_zlabel('Z Label')
3939

4040
plt.show()
41+
42+
# %%
43+
# .. tags::
44+
# plot-type: 3D, plot-type: scatter,
45+
# level: beginner

galleries/examples/mplot3d/stem3d_demo.py

+5
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@
4949
ax.set(xlabel='x', ylabel='y', zlabel='z')
5050

5151
plt.show()
52+
53+
# %%
54+
# .. tags::
55+
# plot-type: 3D, plot-type: speciality,
56+
# level: beginner

galleries/examples/mplot3d/subplot3d.py

+6
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,9 @@
4343
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)
4444

4545
plt.show()
46+
47+
# %%
48+
# .. tags::
49+
# plot-type: 3D,
50+
# component: subplot,
51+
# level: advanced

galleries/examples/mplot3d/surface3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@
5353
# - `matplotlib.axis.Axis.set_major_locator`
5454
# - `matplotlib.ticker.LinearLocator`
5555
# - `matplotlib.ticker.StrMethodFormatter`
56+
#
57+
# .. tags::
58+
# plot-type: 3D,
59+
# styling: colormap,
60+
# level: advanced

galleries/examples/mplot3d/surface3d_2.py

+5
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@
2626
ax.set_aspect('equal')
2727

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

galleries/examples/mplot3d/surface3d_3.py

+6
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@
3838
ax.zaxis.set_major_locator(LinearLocator(6))
3939

4040
plt.show()
41+
42+
# %%
43+
# .. tags::
44+
# plot-type: 3D,
45+
# styling: color, styling: texture,
46+
# level: intermediate

galleries/examples/mplot3d/surface3d_radial.py

+5
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@
3535
ax.set_zlabel(r'$V(\phi)$')
3636

3737
plt.show()
38+
39+
# %%
40+
# .. tags::
41+
# plot-type: 3D, plot-type: polar,
42+
# level: beginner

galleries/examples/mplot3d/text3d.py

+6
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@
4444
ax.set_zlabel('Z axis')
4545

4646
plt.show()
47+
48+
# %%
49+
# .. tags::
50+
# plot-type: 3D,
51+
# component: annotation,
52+
# level: beginner

galleries/examples/mplot3d/tricontour3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,8 @@
4343
ax.view_init(elev=45.)
4444

4545
plt.show()
46+
47+
# %%
48+
# .. tags::
49+
# plot-type: 3D, plot-type: specialty,
50+
# level: intermediate

galleries/examples/mplot3d/tricontourf3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@
4444
ax.view_init(elev=45.)
4545

4646
plt.show()
47+
48+
# %%
49+
# .. tags::
50+
# plot-type: 3D, plot-type: specialty,
51+
# level: intermediate

galleries/examples/mplot3d/trisurf3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@
3030
ax.plot_trisurf(x, y, z, linewidth=0.2, antialiased=True)
3131

3232
plt.show()
33+
34+
# %%
35+
# .. tags::
36+
# plot-type: 3D,
37+
# level: intermediate

galleries/examples/mplot3d/trisurf3d_2.py

+5
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,8 @@
7777

7878

7979
plt.show()
80+
81+
# %%
82+
# .. tags::
83+
# plot-type: 3D, plot-type: specialty,
84+
# level: intermediate

galleries/examples/mplot3d/view_planes_3d.py

+6
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,9 @@ def annotate_axes(ax, text, fontsize=18):
5555
axd['L'].set_axis_off()
5656

5757
plt.show()
58+
59+
# %%
60+
# .. tags::
61+
# plot-type: 3D,
62+
# component: axes, component: subplot,
63+
# level: beginner

galleries/examples/mplot3d/voxels.py

+5
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@
3232
ax.voxels(voxelarray, facecolors=colors, edgecolor='k')
3333

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

galleries/examples/mplot3d/voxels_numpy_logo.py

+6
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,9 @@ def explode(data):
4545
ax.set_aspect('equal')
4646

4747
plt.show()
48+
49+
# %%
50+
# .. tags::
51+
# plot-type: 3D,
52+
# level: beginner,
53+
# purpose: fun

galleries/examples/mplot3d/voxels_rgb.py

+5
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ def midpoints(x):
4242
ax.set_aspect('equal')
4343

4444
plt.show()
45+
46+
# %%
47+
# .. tags::
48+
# plot-type: 3D,
49+
# styling: color

galleries/examples/mplot3d/voxels_torus.py

+6
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ def midpoints(x):
4444
linewidth=0.5)
4545

4646
plt.show()
47+
48+
# %%
49+
# .. tags::
50+
# plot-type: 3D,
51+
# styling: color,
52+
# level: intermediate

galleries/examples/mplot3d/wire3d.py

+5
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@
2020
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)
2121

2222
plt.show()
23+
24+
# %%
25+
# .. tags::
26+
# plot-type: 3D,
27+
# level: beginner

0 commit comments

Comments
 (0)