Skip to content

Commit 91a38f7

Browse files
committed
partial fix for contour_hatching test failure
This puts the hatches in the same order as they were in the reference figure, but the images still don't match because the gray shades are not the same as they were. Furthermore, looking at the original reference figures shows that the pdf and svg backends handle the alpha differently than the agg backend. Not sure what to do about that.
1 parent 1973beb commit 91a38f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_axes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ def test_contour_hatching():
16471647

16481648
fig = plt.figure()
16491649
ax = fig.add_subplot(111)
1650-
cs = ax.contourf(x, y, z, hatches=['-', '/', '\\', '//'],
1650+
cs = ax.contourf(x, y, z, hatches=['/', '\\', '//', '-'],
16511651
cmap=plt.get_cmap('gray'),
16521652
extend='both', alpha=0.5)
16531653

0 commit comments

Comments
 (0)