@@ -4393,8 +4393,9 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
43934393 - 'none': No patch boundary will be drawn.
43944394 - A color or sequence of colors.
43954395
4396- For non-filled markers, the *edgecolors* kwarg is ignored and
4397- forced to 'face' internally.
4396+ For non-filled markers, *edgecolors* is ignored. Instead, the color
4397+ is determined like with 'face', i.e. from *c*, *colors*, or
4398+ *facecolors*.
43984399
43994400 plotnonfinite : bool, default: False
44004401 Set to plot points with nonfinite *c*, in conjunction with
@@ -4476,7 +4477,6 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
44764477 path = marker_obj .get_path ().transformed (
44774478 marker_obj .get_transform ())
44784479 if not marker_obj .is_filled ():
4479- edgecolors = 'face'
44804480 if linewidths is None :
44814481 linewidths = rcParams ['lines.linewidth' ]
44824482 elif np .iterable (linewidths ):
@@ -4488,8 +4488,8 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
44884488
44894489 collection = mcoll .PathCollection (
44904490 (path ,), scales ,
4491- facecolors = colors ,
4492- edgecolors = edgecolors ,
4491+ facecolors = colors if marker_obj . is_filled () else 'none' ,
4492+ edgecolors = edgecolors if marker_obj . is_filled () else colors ,
44934493 linewidths = linewidths ,
44944494 offsets = offsets ,
44954495 transOffset = kwargs .pop ('transform' , self .transData ),
0 commit comments