Skip to content

Commit 2e11021

Browse files
tacaswelljklymak
andauthored
MNT: fix truth-handling of arrays
Co-authored-by: Jody Klymak <jklymak@gmail.com>
1 parent 4cd95ee commit 2e11021

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/axes/_axes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4491,7 +4491,9 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
44914491
"or float array-like with the same size as x and y")
44924492

44934493
# get the original edgecolor the user passed before we normalize
4494-
orig_edgecolor = edgecolors or kwargs.get('edgecolor', None)
4494+
orig_edgecolor = edgecolors
4495+
if edgecolors is None:
4496+
orig_edgecolor = kwargs.get('edgecolor', None)
44954497
c, colors, edgecolors = \
44964498
self._parse_scatter_color_args(
44974499
c, edgecolors, kwargs, x.size,

0 commit comments

Comments
 (0)