Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7662361

Browse files
committed
Merge pull request #2229 from mdboom/pdf/no-hatching
Matplotlib does not display hatching when rendering to pdf in fill_between
2 parents 8bad5f7 + ba12154 commit 7662361

File tree

5 files changed

+99
-78
lines changed

5 files changed

+99
-78
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,7 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
15461546

15471547
if not len(facecolors):
15481548
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
Binary file not shown.

0 commit comments

Comments
 (0)