Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

added tags to mplot3d examples#28568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
scottshambaugh merged 1 commit intomatplotlib:mainfromfarquh:'tagging_mplot3d'
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/2dcollections3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -46,3 +46,9 @@
ax.view_init(elev=20., azim=-35, roll=0)

plt.show()

# %%
# .. tags::
# plot-type: 3D, plot-type: scatter, plot-type: line,
# component: axes,
# level: intermediate
7 changes: 7 additions & 0 deletionsgalleries/examples/mplot3d/3d_bars.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,3 +31,10 @@
ax2.set_title('Not Shaded')

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# styling: texture,
# plot-type: bar,
# level: beginner
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/bars3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -40,3 +40,9 @@
ax.set_yticks(yticks)

plt.show()

# %%
# .. tags::
# plot-type: 3D, plot-type: bar,
# styling: color,
# level: beginner
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/box3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -76,3 +76,8 @@

# Show Figure
plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: intermediate
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/contour3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,3 +18,8 @@
ax.contour(X, Y, Z, cmap=cm.coolwarm) # Plot contour curves

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: beginner
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/contour3d_2.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,3 +17,8 @@
ax.contour(X, Y, Z, extend3d=True, cmap=cm.coolwarm)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: beginner
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/contour3d_3.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,3 +29,9 @@
xlabel='X', ylabel='Y', zlabel='Z')

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# component: axes,
# level: intermediate
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/contourf3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,3 +20,8 @@
ax.contourf(X, Y, Z, cmap=cm.coolwarm)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: beginner
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/contourf3d_2.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,3 +29,9 @@
xlabel='X', ylabel='Y', zlabel='Z')

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# component: axes,
# level: intermediate
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/custom_shaded_3d_surface.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -34,3 +34,9 @@
linewidth=0, antialiased=False, shade=False)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: intermediate,
# domain: cartography
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/errorbar3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,3 +27,9 @@
ax.set_zlabel("Z label")

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# component: error,
# level: beginner
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/hist3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,3 +31,9 @@
ax.bar3d(xpos, ypos, zpos, dx, dy, dz, zsort='average')

plt.show()


# %%
# .. tags::
# plot-type: 3D, plot-type: histogram,
# level: beginner
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/imshow3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -86,3 +86,9 @@ def imshow3d(ax, array, value_direction='z', pos=0, norm=None, cmap=None):
imshow3d(ax, data_zx, value_direction='y', pos=ny, cmap='plasma')

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# styling: colormap,
# level: advanced
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/intersecting_planes.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -87,3 +87,9 @@ def figure_3D_array_slices(array, cmap=None):

figure_3D_array_slices(r_square, cmap='viridis_r')
plt.show()


# %%
# .. tags::
# plot-type: 3D,
# level: advanced
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/lines3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -22,3 +22,8 @@
ax.legend()

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: beginner
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/lorenz_attractor.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -59,3 +59,8 @@ def lorenz(xyz, *, s=10, r=28, b=2.667):
ax.set_title("Lorenz Attractor")

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: intermediate
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/mixed_subplots.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,3 +44,9 @@ def f(t):
ax.set_zlim(-1, 1)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# component: subplot,
# level: beginner
7 changes: 7 additions & 0 deletionsgalleries/examples/mplot3d/offset.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,3 +29,10 @@
ax.set_zlim(0, 2)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# component: label,
# interactivity: pan,
# level: beginner
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/pathpatch3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -69,3 +69,9 @@ def text3d(ax, xyz, s, zdir="z", size=None, angle=0, usetex=False, **kwargs):
ax.set_zlim(0, 10)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# component: label,
# level: advanced
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/polys3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -33,3 +33,9 @@
ax.set_aspect('equalxy')

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# styling: colormap,
# level: intermediate
7 changes: 7 additions & 0 deletionsgalleries/examples/mplot3d/projections.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -53,3 +53,10 @@
axs[2].set_title("'persp'\nfocal_length = 0.2", fontsize=10)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# styling: small-multiples,
# component: subplot,
# level: intermediate
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/quiver3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,3 +25,8 @@
ax.quiver(x, y, z, u, v, w, length=0.1, normalize=True)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: beginner
7 changes: 7 additions & 0 deletionsgalleries/examples/mplot3d/rotate_axes3d_sgskip.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -49,3 +49,10 @@

plt.draw()
plt.pause(.001)

# %%
# .. tags::
# plot-type: 3D,
# component: animation,
# level: advanced,
# internal: high-bandwidth
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/scatter3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -38,3 +38,8 @@ def randrange(n, vmin, vmax):
ax.set_zlabel('Z Label')

plt.show()

# %%
# .. tags::
# plot-type: 3D, plot-type: scatter,
# level: beginner
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/stem3d_demo.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -49,3 +49,8 @@
ax.set(xlabel='x', ylabel='y', zlabel='z')

plt.show()

# %%
# .. tags::
# plot-type: 3D, plot-type: speciality,
# level: beginner
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/subplot3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -43,3 +43,9 @@
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# component: subplot,
# level: advanced
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/surface3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -53,3 +53,8 @@
# - `matplotlib.axis.Axis.set_major_locator`
# - `matplotlib.ticker.LinearLocator`
# - `matplotlib.ticker.StrMethodFormatter`
#
# .. tags::
# plot-type: 3D,
# styling: colormap,
# level: advanced
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/surface3d_2.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -26,3 +26,8 @@
ax.set_aspect('equal')

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: beginner
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/surface3d_3.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -38,3 +38,9 @@
ax.zaxis.set_major_locator(LinearLocator(6))

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# styling: color, styling: texture,
# level: intermediate
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/surface3d_radial.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -35,3 +35,8 @@
ax.set_zlabel(r'$V(\phi)$')

plt.show()

# %%
# .. tags::
# plot-type: 3D, plot-type: polar,
# level: beginner
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/text3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,3 +44,9 @@
ax.set_zlabel('Z axis')

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# component: annotation,
# level: beginner
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/tricontour3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -43,3 +43,8 @@
ax.view_init(elev=45.)

plt.show()

# %%
# .. tags::
# plot-type: 3D, plot-type: specialty,
# level: intermediate
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/tricontourf3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,3 +44,8 @@
ax.view_init(elev=45.)

plt.show()

# %%
# .. tags::
# plot-type: 3D, plot-type: specialty,
# level: intermediate
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/trisurf3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,3 +30,8 @@
ax.plot_trisurf(x, y, z, linewidth=0.2, antialiased=True)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: intermediate
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/trisurf3d_2.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -77,3 +77,8 @@


plt.show()

# %%
# .. tags::
# plot-type: 3D, plot-type: specialty,
# level: intermediate
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/view_planes_3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -55,3 +55,9 @@ def annotate_axes(ax, text, fontsize=18):
axd['L'].set_axis_off()

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# component: axes, component: subplot,
# level: beginner
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/voxels.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -32,3 +32,8 @@
ax.voxels(voxelarray, facecolors=colors, edgecolor='k')

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: beginner
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/voxels_numpy_logo.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,3 +45,9 @@ def explode(data):
ax.set_aspect('equal')

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: beginner,
# purpose: fun
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/voxels_rgb.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -42,3 +42,8 @@ def midpoints(x):
ax.set_aspect('equal')

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# styling: color
6 changes: 6 additions & 0 deletionsgalleries/examples/mplot3d/voxels_torus.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,3 +44,9 @@ def midpoints(x):
linewidth=0.5)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# styling: color,
# level: intermediate
5 changes: 5 additions & 0 deletionsgalleries/examples/mplot3d/wire3d.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,3 +20,8 @@
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)

plt.show()

# %%
# .. tags::
# plot-type: 3D,
# level: beginner
Loading

[8]ページ先頭

©2009-2025 Movatter.jp