Skip to content

Commit c68963d

Browse files
committed
Fixed hatching in patches
1 parent ebbef87 commit c68963d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/patches.py

+2-2
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-
if set_hatch_color:
372+
if set_hatch_color and not self._edgecolor == self._facecolor:
373373
self._hatch_color = self._edgecolor
374374
self.stale = True
375375

0 commit comments

Comments
 (0)