Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitc4a753f

Browse files
committed
Change gc parameter position
1 parentaf156e9 commitc4a753f

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-
defcreate_hatch(self,gc,hatch):
347+
defcreate_hatch(self,hatch,gc=None):
348348
sidelen=72
349349
ifhatchinself._hatches:
350350
returnself._hatches[hatch]
@@ -773,7 +773,7 @@ def _draw_ps(self, ps, gc, rgbFace, *, fill=True, stroke=True):
773773
write("grestore\n")
774774

775775
ifhatch:
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)

[8]ページ先頭

©2009-2025 Movatter.jp