8000 Improved edgecolor function readability · matplotlib/matplotlib@83f7683 · GitHub
[go: up one dir, main page]

Skip to content

Commit 83f7683

Browse files
committed
Improved edgecolor function readability
1 parent 53dae5b commit 83f7683

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,19 +321,15 @@ def set_antialiased(self, aa):
321321
self.stale = True
322322

323323
def _set_edgecolor(self, color):
324-
set_hatch_color_from_edgecolor = True
325324
if color is None:
326325
if (mpl.rcParams['patch.force_edgecolor'] or
327326
not self._fill or self._edge_default):
328327
color = mpl.rcParams['patch.edgecolor']
329328
else:
330329
color = 'none'
331330

332-
if color == "none":
333-
set_hatch_color_from_edgecolor = False
334-
335331
self._edgecolor = colors.to_rgba(color, self._alpha)
336-
if set_hatch_color_from_edgecolor and (not self.set_hatch_color):
332+
if color != 'none' and (not self.set_hatch_color):
337333
self._hatch_color = self._edgecolor
338334
self.stale = True
339335

0 commit comments

Comments
 (0)
0