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

Skip to content

Commit bf8b763

Browse files
committed
Handle markeredgecolor=None etc. consistently
svn path=/branches/v0_91_maint/; revision=5753
1 parent caf170e commit bf8b763

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/matplotlib/lines.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,6 @@ def __init__(self, xdata, ydata,
238238
if linestyle is None : linestyle=rcParams['lines.linestyle']
239239
if marker is None : marker=rcParams['lines.marker']
240240
if color is None : color=rcParams['lines.color']
241-
if markeredgecolor is None :
242-
markeredgecolor='auto'
243-
if markerfacecolor is None :
244-
markerfacecolor='auto'
245-
if markeredgewidth is None :
246-
markeredgewidth=rcParams['lines.markeredgewidth']
247241

248242
if markersize is None : markersize=rcParams['lines.markersize']
249243
if antialiased is None : antialiased=rcParams['lines.antialiased']
@@ -654,6 +648,8 @@ def set_markeredgecolor(self, ec):
654648
655649
ACCEPTS: any matplotlib color
656650
"""
651+
if ec is None:
652+
ec = 'auto'
657653
self._markeredgecolor = ec
658654

659655
def set_markeredgewidth(self, ew):
@@ -662,6 +658,8 @@ def set_markeredgewidth(self, ew):
662658
663659
ACCEPTS: float value in points
664660
"""
661+
if ew is None:
662+
ew = rcParams['lines.markeredgewidth']
665663
self._markeredgewidth = ew
666664

667665
def set_markerfacecolor(self, fc):
@@ -670,6 +668,8 @@ def set_markerfacecolor(self, fc):
670668
671669
ACCEPTS: any matplotlib color
672670
"""
671+
if fc is None:
672+
fc = 'auto'
673673
self._markerfacecolor = fc
674674

675675
def set_markersize(self, sz):

0 commit comments

Comments
 (0)