Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55e16ca

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines 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)