Skip to content

Commit 7141d2c

Browse files
Update relevant gallery images
1 parent da0e607 commit 7141d2c

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

examples/mplot3d/surface3d_2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@
2323
# Plot the surface
2424
ax.plot_surface(x, y, z)
2525

26+
# Set an equal aspect ratio
27+
ax.set_aspect('equal')
28+
2629
plt.show()

examples/mplot3d/voxels_numpy_logo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ def explode(data):
4242

4343
ax = plt.figure().add_subplot(projection='3d')
4444
ax.voxels(x, y, z, filled_2, facecolors=fcolors_2, edgecolors=ecolors_2)
45+
ax.set_aspect('equal')
4546

4647
plt.show()

examples/mplot3d/voxels_rgb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ def midpoints(x):
3939
edgecolors=np.clip(2*colors - 0.5, 0, 1), # brighter
4040
linewidth=0.5)
4141
ax.set(xlabel='r', ylabel='g', zlabel='b')
42+
ax.set_aspect('equal')
4243

4344
plt.show()

0 commit comments

Comments
 (0)