Skip to content

Commit eb38caa

Browse files
committed
Fixes #2229: Hatching on line collections in PDF backend works
1 parent 0f8a452 commit eb38caa

File tree

4 files changed

+98
-78
lines changed

4 files changed

+98
-78
lines changed

lib/matplotlib/backends/backend_pdf.py

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

15471547
if not len(facecolors):
1548-
filled = False
1548+
filled = can_do_optimization = not gc.get_hatch()
15491549
else:
15501550
if np.all(facecolors[:, 3] == facecolors[0, 3]):
15511551
filled = facecolors[0, 3] != 0.0
Binary file not shown.

0 commit comments

Comments
 (0)