Skip to content

Commit 77e497a

Browse files
committed
Handle markerfacecolor=None etc. consistenty
svn path=/trunk/matplotlib/; revision=5752
1 parent 90453a4 commit 77e497a

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
@@ -215,12 +215,6 @@ def __init__(self, xdata, ydata,
215215
if linestyle is None : linestyle=rcParams['lines.linestyle']
216216
if marker is None : marker=rcParams['lines.marker']
217217
if color is None : color=rcParams['lines.color']
218-
if markeredgecolor is None :
219-
markeredgecolor='auto'
220-
if markerfacecolor is None :
221-
markerfacecolor='auto'
222-
if markeredgewidth is None :
223-
markeredgewidth=rcParams['lines.markeredgewidth']
224218

225219
if markersize is None : markersize=rcParams['lines.markersize']
226220
if antialiased is None : antialiased=rcParams['lines.antialiased']
@@ -628,6 +622,8 @@ def set_markeredgecolor(self, ec):
628622
629623
ACCEPTS: any matplotlib color
630624
"""
625+
if ec is None :
626+
ec = 'auto'
631627
self._markeredgecolor = ec
632628

633629
def set_markeredgewidth(self, ew):
@@ -636,6 +632,8 @@ def set_markeredgewidth(self, ew):
636632
637633
ACCEPTS: float value in points
638634
"""
635+
if ew is None :
636+
ew = rcParams['lines.markeredgewidth']
639637
self._markeredgewidth = ew
640638

641639
def set_markerfacecolor(self, fc):
@@ -644,6 +642,8 @@ def set_markerfacecolor(self, fc):
644642
645643
ACCEPTS: any matplotlib color
646644
"""
645+
if fc is None :
646+
fc = 'auto'
647647
self._markerfacecolor = fc
648648

649649
def set_markersize(self, sz):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy