Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eb38caa

Browse filesBrowse files
committed
Fixes matplotlib#2229: Hatching on line collections in PDF backend works
1 parent 0f8a452 commit eb38caa
Copy full SHA for eb38caa

File tree

Expand file treeCollapse file tree

4 files changed

+98
-78
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+98
-78
lines changed

‎lib/matplotlib/backends/backend_pdf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pdf.py
+1-1Lines changed: 1 addition & 1 deletion
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.
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.