Skip to content

Navigation Menu

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

Appearance settings

Commit c68963d

Browse filesBrowse files
committed
Fixed hatching in patches
1 parent ebbef87 commit c68963d
Copy full SHA for c68963d

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎lib/matplotlib/patches.py

Copy file name to clipboardExpand all lines: lib/matplotlib/patches.py
+2-2Lines 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-
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.