Skip to content

Commit a3459a2

Browse files
committed
Merge pull request matplotlib#1427 from dmcdougall/fix_pcolor_ec
Fix AttrituteError for .lower on tuple of strings
2 parents 070425c + 1e36405 commit a3459a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/axes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7347,8 +7347,9 @@ def pcolor(self, *args, **kwargs):
73477347
# makes artifacts that are often disturbing.
73487348
if 'antialiased' in kwargs:
73497349
kwargs['antialiaseds'] = kwargs.pop('antialiased')
7350-
if 'antialiaseds' not in kwargs and ec.lower() == "none":
7351-
kwargs['antialiaseds'] = False
7350+
if 'antialiaseds' not in kwargs and (is_string_like(ec) and
7351+
ec.lower() == "none"):
7352+
kwargs['antialiaseds'] = False
73527353

73537354

73547355
collection = mcoll.PolyCollection(verts, **kwargs)

0 commit comments

Comments
 (0)