8000 FIX: default color handling in bar3D by tacaswell · Pull Request #6990 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

FIX: default color handling in bar3D #6990

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 29, 2016
Merged
Changes from 1 commit
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
Prev Previous commit
TST: add smoke test for default color in bar3D
  • Loading branch information
tacaswell committed Aug 27, 2016
commit e0dbfdfe0f1707ec6a3ccfedad3cac3b36099263
13 changes: 13 additions & 0 deletions lib/mpl_toolkits/tests/test_mplot3d.py
76B4
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ def test_bar3d():
ax.bar(xs, ys, zs=z, zdir='y', color=cs, alpha=0.8)


@cleanup
def test_bar3d_dflt_smoke():
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
x = np.arange(4)
y = np.arange(5)
x2d, y2d = np.meshgrid(x, y)
x2d, y2d = x2d.ravel(), y2d.ravel()
z = x2d + y2d
ax.bar3d(x2d, y2d, x2d * 0, 1, 1, z)
fig.canvas.draw()


@image_comparison(baseline_images=['contour3d'], remove_text=True)
def test_contour3d():
fig = plt.figure()
Expand Down
0