@@ -4393,8 +4393,9 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4393
4393
- 'none': No patch boundary will be drawn.
4394
4394
- A color or sequence of colors.
4395
4395
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*.
4398
4399
4399
4400
plotnonfinite : bool, default: False
4400
4401
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,
4476
4477
path = marker_obj .get_path ().transformed (
4477
4478
marker_obj .get_transform ())
4478
4479
if not marker_obj .is_filled ():
4479
- edgecolors = 'face'
4480
4480
if linewidths is None :
4481
4481
linewidths = rcParams ['lines.linewidth' ]
4482
4482
elif np .iterable (linewidths ):
@@ -4488,8 +4488,8 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4488
4488
4489
4489
collection = mcoll .PathCollection (
4490
4490
(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 ,
4493
4493
linewidths = linewidths ,
4494
4494
offsets = offsets ,
4495
4495
transOffset = kwargs .pop ('transform' , self .transData ),
0 commit comments