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

Skip to content

Commit ce3d899

Browse files
committed
Add wireframe tests with zero r and c stride
1 parent 2375009 commit ce3d899

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,23 @@ def test_wireframe3d():
172172
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)
173173

174174

175+
@image_comparison(baseline_images=['wireframe3dzerocstride'], remove_text=True,
176+
extensions=['png'])
177+
def test_wireframe3dzerocstride():
178+
fig = plt.figure()
179+
ax = fig.add_subplot(111, projection='3d')
180+
X, Y, Z = axes3d.get_test_data(0.05)
181+
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=0)
182+
183+
184+
@image_comparison(baseline_images=['wireframe3dzerorstride'], remove_text=True,
185+
extensions=['png'])
186+
def test_wireframe3dzerorstride():
187+
fig = plt.figure()
188+
ax = fig.add_subplot(111, projection='3d')
189+
X, Y, Z = axes3d.get_test_data(0.05)
190+
ax.plot_wireframe(X, Y, Z, rstride=0, cstride=10)
191+
175192
@image_comparison(baseline_images=['quiver3d'], remove_text=True)
176193
def test_quiver3d():
177194
fig = plt.figure()

0 commit comments

Comments
 (0)