Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32b932c

Browse files
committed
fix set_markeredgecolor according to set_markerfacecolor strategy
1 parent 6c8db47 commit 32b932c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/matplotlib/lines.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -980,10 +980,12 @@ def set_markeredgecolor(self, ec):
980980
981981
ACCEPTS: any matplotlib color
982982
"""
983-
if ec is None or ec == 'auto':
984-
self._markeredgecolor = 'auto'
983+
if ec is None:
984+
ec = 'auto'
985+
if ec in ['auto', 'none']:
986+
self._markeredgecolor = ec
985987
else:
986-
self._markereditcolor = colorConverter.to_rgba(ec)
988+
self._markeredgecolor = colorConverter.to_rgba(ec)
987989

988990
def set_markeredgewidth(self, ew):
989991
"""

0 commit comments

Comments
 (0)