Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2375009

Browse files
committed
Add example of new zero stride wire3d plots
1 parent ba1e339 commit 2375009

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from mpl_toolkits.mplot3d import axes3d
2+
import matplotlib.pyplot as plt
3+
import numpy as np
4+
5+
fig, [ax1, ax2] = plt.subplots(2, 1, figsize=(8, 12), subplot_kw={'projection': '3d'})
6+
X, Y, Z = axes3d.get_test_data(0.05)
7+
ax1.plot_wireframe(X, Y, Z, rstride=10, cstride=0)
8+
ax1.set_title("Column stride 0")
9+
ax2.plot_wireframe(X, Y, Z, rstride=0, cstride=10)
10+
ax2.set_title("Row stride 0")
11+
plt.tight_layout()
12+
plt.show()

0 commit comments

Comments
 (0)