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

Commitc68963d

Browse files
committed
Fixed hatching in patches
1 parentebbef87 commitc68963d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/matplotlib/patches.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def __init__(self, *,
8080
"the edgecolor or facecolor properties.")
8181
self.set_color(color)
8282
else:
83-
self.set_edgecolor(edgecolor)
8483
self.set_facecolor(facecolor)
84+
self.set_edgecolor(edgecolor)
8585

8686
self._linewidth=0
8787
self._unscaled_dash_pattern= (0,None)# offset, dash
@@ -369,7 +369,7 @@ def _set_edgecolor(self, color):
369369
set_hatch_color=False
370370

371371
self._edgecolor=colors.to_rgba(color,self._alpha)
372-
ifset_hatch_color:
372+
ifset_hatch_colorandnotself._edgecolor==self._facecolor:
373373
self._hatch_color=self._edgecolor
374374
self.stale=True
375375

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp