Skip to content

Commit e0dbfdf

Browse files
committed
TST: add smoke test for default color in bar3D
1 parent d8ca49c commit e0dbfdf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ def test_bar3d():
2020
ax.bar(xs, ys, zs=z, zdir='y', color=cs, alpha=0.8)
2121

2222

23+
@cleanup
24+
def test_bar3d_dflt_smoke():
25+
fig = plt.figure()
26+
ax = fig.add_subplot(111, projection='3d')
27+
x = np.arange(4)
28+
y = np.arange(5)
29+
x2d, y2d = np.meshgrid(x, y)
30+
x2d, y2d = x2d.ravel(), y2d.ravel()
31+
z = x2d + y2d
32+
ax.bar3d(x2d, y2d, x2d * 0, 1, 1, z)
33+
fig.canvas.draw()
34+
35+
2336
@image_comparison(baseline_images=['contour3d'], remove_text=True)
2437
def test_contour3d():
2538
fig = plt.figure()

0 commit comments

Comments
 (0)