Skip to content

Commit ba12154

Browse files
committed
Fix unit tests.
1 parent eb38caa commit ba12154

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/matplotlib/backends/backend_pdf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,8 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
15451545
edgecolors = np.asarray(edgecolors)
15461546

15471547
if not len(facecolors):
1548-
filled = can_do_optimization = not gc.get_hatch()
1548+
filled = False
1549+
can_do_optimization = not gc.get_hatch()
15491550
else:
15501551
if np.all(facecolors[:, 3] == facecolors[0, 3]):
15511552
filled = facecolors[0, 3] != 0.0

lib/matplotlib/tests/test_axes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def test_fill_between_interpolate():
578578
fig = plt.figure()
579579
ax = fig.add_subplot(211)
580580
ax.plot(x, y1, x, y2, color='black')
581-
ax.fill_between(x, y1, y2, where=y2>=y1, facecolor='green', interpolate=True)
581+
ax.fill_between(x, y1, y2, where=y2>=y1, facecolor='white', hatch='/', interpolate=True)
582582
ax.fill_between(x, y1, y2, where=y2<=y1, facecolor='red', interpolate=True)
583583

584584
# Test support for masked arrays.

0 commit comments

Comments
 (0)