Skip to content

Commit 39cfd56

Browse files
committed
PR comments and updated whats new
1 parent 679603a commit 39cfd56

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

doc/users/next_whats_new/updated_scatter.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Enable configuration of empty markers in `~matplotlib.axes.Axes.scatter`
22
------------------------------------------------------------------------
33

4-
`~matplotlib.axes.Axes.scatter` can now be configured to plot empty markers without additional code. Setting ``facecolors`` to *'none'* and defining ``c`` now draws only the edge colors for fillable markers.
4+
`~matplotlib.axes.Axes.scatter` can now be configured to plot empty markers by setting ``facecolors`` to *'none'* and defining ``c``. In this case, ``c`` will be now used as ``edgecolor``.
55

66
.. plot::
77
:include-source: true

lib/matplotlib/axes/_axes.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -4387,11 +4387,9 @@ def _parse_scatter_color_args(c, edgecolors, kwargs, xsize,
43874387
if facecolors is None:
43884388
facecolors = kwcolor
43894389

4390-
edge_from_c = False
4391-
if edgecolors is None and c is not None:
4392-
edge_from_c = True
4390+
edge_from_c = edgecolors is None and c is not None
43934391

4394-
facecolors_none = isinstance(facecolors, str) and facecolors == 'none'
4392+
facecolors_none = cbook._str_lower_equal(facecolors, 'none')
43954393
if (edgecolors is None and not mpl.rcParams['_internal.classic_mode']
43964394
and (not edge_from_c or not facecolors_none)):
43974395

0 commit comments

Comments
 (0)