Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import six
from six.moves import xrange, zip, zip_longest

try:
import collections.abc as collections_abc
except ImportError:
import collections as collections_abc
import functools
import itertools
import logging
Expand Down Expand Up @@ -4268,7 +4272,11 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
# c is an array for mapping. The potential ambiguity
# with a sequence of 3 or 4 numbers is resolved in
# favor of mapping, not rgb or rgba.
if c_none or co is not None:
if (c_none or
co is not None or
isinstance(c, six.string_types) or
(isinstance(c, collections_abc.Iterable) and
isinstance(c[0], six.string_types))):
c_array = None
else:
try:
Expand Down