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

Skip to content

Commit 748a62a

Browse files
committed
fix set_markeredgecolor according to set_markerfacecolor strategy
1 parent 6c8db47 commit 748a62a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/lines.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,8 +980,10 @@ 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:
986988
self._markereditcolor = colorConverter.to_rgba(ec)
987989

0 commit comments

Comments
 (0)