Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit39cfd56

Browse files
committed
PR comments and updated whats new
1 parent679603a commit39cfd56

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

‎doc/users/next_whats_new/updated_scatter.rst

Lines changed: 1 addition & 1 deletion
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 markerswithout 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 markersby 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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4387,11 +4387,9 @@ def _parse_scatter_color_args(c, edgecolors, kwargs, xsize,
43874387
iffacecolorsisNone:
43884388
facecolors=kwcolor
43894389

4390-
edge_from_c=False
4391-
ifedgecolorsisNoneandcisnotNone:
4392-
edge_from_c=True
4390+
edge_from_c=edgecolorsisNoneandcisnotNone
43934391

4394-
facecolors_none=isinstance(facecolors,str)andfacecolors=='none'
4392+
facecolors_none=cbook._str_lower_equal(facecolors,'none')
43954393
if (edgecolorsisNoneandnotmpl.rcParams['_internal.classic_mode']
43964394
and (notedge_from_cornotfacecolors_none)):
43974395

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp