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

Skip to content

Commit cc85cce

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines 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)