8000 Fill hatches on PDF and PS backends. · matplotlib/matplotlib@74e13fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 74e13fe

Browse files
committed
Fill hatches on PDF and PS backends.
This matches behaviour with the Agg backend. Fixes #3023. Fixes #6228.
1 parent 9821dc0 commit 74e13fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ def writeHatches(self):
11901190
Path.hatch(path),
11911191
Affine2D().scale(sidelen),
11921192
simplify=False))
1193-
self.output(Op.stroke)
1193+
self.output(Op.fill_stroke)
11941194

11951195
self.endStream()
11961196
self.writeObject(self.hatchObject, hatchDict)

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ def create_hatch(self, hatch):
322322
self._convert_path(Path.hatch(hatch), Affine2D().scale(sidelen),
323323
simplify=False))
324324
self._pswriter.write("""\
325+
fill
325326
stroke
326327
} bind
327328
>>

0 commit comments

Comments
 (0)
0