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

Appearance settings

Commit 55e16ca

Browse filesBrowse files
committed
MNT: be more careful about not converting an array to a bool
1 parent 63d83da commit 55e16ca
Copy full SHA for 55e16ca

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4452,7 +4452,9 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
44524452
if len(s) not in (1, x.size):
44534453
raise ValueError("s must be a scalar, or the same size as x and y")
44544454
# get the original edgecolor the user passed before we normalize
4455-
orig_edgecolor = edgecolors or kwargs.get('edgecolor', None)
4455+
orig_edgecolor = (edgecolors
4456+
if edgecolors is not None
4457+
else kwargs.get('edgecolor', None))
44564458
c, colors, edgecolors = \
44574459
self._parse_scatter_color_args(
44584460
c, edgecolors, kwargs, x.size,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.