8000 Change gc parameter position · matplotlib/matplotlib@3c417ab · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c417ab

Browse files
committed
Change gc parameter position
1 parent a9dd26f commit 3c417ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def set_font(self, fontname, fontsize, store=True):
344344
self.fontname = fontname
345345
self.fontsize = fontsize
346346

347-
def create_hatch(self, gc, hatch):
347+
def create_hatch(self, hatch, gc=None):
348348
sidelen = 72
349349
if hatch in self._hatches:
350350
return self._hatches[hatch]
@@ -773,7 +773,7 @@ def _draw_ps(self, ps, gc, rgbFace, *, fill=True, stroke=True):
773773
write("grestore\n")
774774

775775
if hatch:
776-
hatch_name = self.create_hatch(gc, hatch)
776+
hatch_name = self.create_hatch(hatch, gc)
777777
write("gsave\n")
778778
write(_nums_to_str(*gc.get_hatch_color()[:3]))
779779
write(f" {hatch_name} setpattern fill grestore\n")

0 commit comments

Comments
 (0)
0