Skip to content

Commit 862b747

Browse files
committed
Fix misnamed things in PDF backend.
Doesn't change anything; just makes it consistent with what it actually is. Also, remove comment about DPI-dependence, because hatching should not be DPI dependent.
1 parent d072fc2 commit 862b747

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,12 +1141,12 @@ def alphaState(self, alpha):
11411141
def hatchPattern(self, hatch_style):
11421142
# The colors may come in as numpy arrays, which aren't hashable
11431143
if hatch_style is not None:
1144-
face, edge, hatch = hatch_style
1145-
if face is not None:
1146-
face = tuple(face)
1144+
edge, face, hatch = hatch_style
11471145
if edge is not None:
11481146
edge = tuple(edge)
1149-
hatch_style = (face, edge, hatch)
1147+
if face is not None:
1148+
face = tuple(face)
1149+
hatch_style = (edge, face, hatch)
11501150

11511151
pattern = self.hatchPatterns.get(hatch_style, None)
11521152
if pattern is not None:
@@ -1184,8 +1184,6 @@ def writeHatches(self):
11841184

11851185
self.output(rcParams['hatch.linewidth'], Op.setlinewidth)
11861186

1187-
# TODO: We could make this dpi-dependent, but that would be
1188-
# an API change
11891187
self.output(*self.pathOperations(
11901188
Path.hatch(path),
11911189
Affine2D().scale(sidelen),

0 commit comments

Comments
 (0)