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 cc85cce

Browse filesBrowse files
authored
Merge pull request #20707 from anntzer/hatchvar
Rename a confusingly named variable in backend_pdf.
2 parents ae2a3b1 + f47fd7d commit cc85cce
Copy full SHA for cc85cce

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/backends/backend_pdf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pdf.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ def writeHatches(self):
14621462
# Change origin to match Agg at top-left.
14631463
'Matrix': [1, 0, 0, 1, 0, self.height * 72]})
14641464

1465-
stroke_rgb, fill_rgb, path = hatch_style
1465+
stroke_rgb, fill_rgb, hatch = hatch_style
14661466
self.output(stroke_rgb[0], stroke_rgb[1], stroke_rgb[2],
14671467
Op.setrgb_stroke)
14681468
if fill_rgb is not None:
@@ -1474,7 +1474,7 @@ def writeHatches(self):
14741474
self.output(mpl.rcParams['hatch.linewidth'], Op.setlinewidth)
14751475

14761476
self.output(*self.pathOperations(
1477-
Path.hatch(path),
1477+
Path.hatch(hatch),
14781478
Affine2D().scale(sidelen),
14791479
simplify=False))
14801480
self.output(Op.fill_stroke)

0 commit comments

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