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

Skip to content

Commit 1e36405

Browse files
committed
Fix AttrituteError for .lower on tuple of strings
1 parent 070425c commit 1e36405

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)