@@ -1986,7 +1986,7 @@ def bar(self, left, height, width=0.8, bottom=None, **kwargs):
19861986        xerr  =  kwargs .pop ('xerr' , None )
19871987        yerr  =  kwargs .pop ('yerr' , None )
19881988        error_kw  =  kwargs .pop ('error_kw' , dict ())
1989-         ecolor  =  kwargs .pop ('ecolor' , None )
1989+         ecolor  =  kwargs .pop ('ecolor' , 'k' )
19901990        capsize  =  kwargs .pop ('capsize' , rcParams ["errorbar.capsize" ])
19911991        error_kw .setdefault ('ecolor' , ecolor )
19921992        error_kw .setdefault ('capsize' , capsize )
@@ -3762,11 +3762,16 @@ def scatter(self, x, y, s=20, c=None, marker='o', cmap=None, norm=None,
37623762            If None, defaults to (lines.linewidth,). 
37633763
37643764        edgecolors : color or sequence of color, optional, default: None 
3765-             If None, defaults to (patch.edgecolor). 
3765+             If None, defaults to 'face' 
3766+ 
37663767            If 'face', the edge color will always be the same as 
3767-             the face color.  If it is 'none', the patch boundary will not 
3768-             be drawn.  For non-filled markers, the `edgecolors` kwarg 
3769-             is ignored; color is determined by `c`. 
3768+             the face color. 
3769+ 
3770+             If it is 'none', the patch boundary will not 
3771+             be drawn. 
3772+ 
3773+             For non-filled markers, the `edgecolors` kwarg 
3774+             is ignored and forced to 'face' internally. 
37703775
37713776        Returns 
37723777        ------- 
@@ -3823,6 +3828,9 @@ def scatter(self, x, y, s=20, c=None, marker='o', cmap=None, norm=None,
38233828            else :
38243829                c  =  'b'   # The original default 
38253830
3831+         if  edgecolors  is  None  and  not  rcParams ['_internal.classic_mode' ]:
3832+             edgecolors  =  'face' 
3833+ 
38263834        self ._process_unit_info (xdata = x , ydata = y , kwargs = kwargs )
38273835        x  =  self .convert_xunits (x )
38283836        y  =  self .convert_yunits (y )
@@ -3875,6 +3883,7 @@ def scatter(self, x, y, s=20, c=None, marker='o', cmap=None, norm=None,
38753883            marker_obj .get_transform ())
38763884        if  not  marker_obj .is_filled ():
38773885            edgecolors  =  'face' 
3886+             linewidths  =  rcParams ['lines.linewidth' ]
38783887
38793888        offsets  =  np .dstack ((x , y ))
38803889
@@ -4018,9 +4027,9 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
40184027           the alpha value for the patches 
40194028
40204029        *linewidths*: [ *None* | scalar ] 
4021-            If *None*, defaults to rc lines.linewidth . Note that this 
4022-            is a tuple, and  if you set the linewidths argument you 
4023-            must set it as a  sequence of floats, as required by 
4030+            If *None*, defaults to 1.0 . Note that this is a tuple, and  
4031+            if you set the linewidths argument you must set it as a  
4032+            sequence of floats, as required by 
40244033           :class:`~matplotlib.collections.RegularPolyCollection`. 
40254034
40264035        Other keyword arguments controlling the Collection properties: 
@@ -4213,6 +4222,8 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
42134222
42144223        if  edgecolors  ==  'none' :
42154224            edgecolors  =  'face' 
4225+         if  linewidths  is  None :
4226+             linewidths  =  [1.0 ]
42164227
42174228        if  xscale  ==  'log'  or  yscale  ==  'log' :
42184229            polygons  =  np .expand_dims (polygon , 0 ) +  np .expand_dims (offsets , 1 )
0 commit comments