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 a3459a2

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎lib/matplotlib/axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes.py
+3-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.