Skip to content

Commit 8a7cd65

Browse files
committed
update contourf hatch test with cmap.with_alpha()
1 parent 6f18c49 commit 8a7cd65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2649,8 +2649,8 @@ def test_contour_hatching():
26492649
x, y, z = contour_dat()
26502650
fig, ax = plt.subplots()
26512651
ax.contourf(x, y, z, 7, hatches=['/', '\\', '//', '-'],
2652-
cmap=mpl.colormaps['gray'],
2653-
extend='both', alpha=0.5)
2652+
cmap=mpl.colormaps['gray'].with_alpha(0.5),
2653+
extend='both')
26542654

26552655

26562656
@image_comparison(['contour_colorbar'], style='mpl20',

0 commit comments

Comments
 (0)