8000 Fix AttrituteError for .lower on tuple of strings · matplotlib/matplotlib@1e36405 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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