Permalink
Browse files

Fix AttrituteError for .lower on tuple of strings

  • Loading branch information...
1 parent 070425c commit 1e36405f178633b75783410ea056d0938b10ea73 @dmcdougall committed Oct 22, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/matplotlib/axes.py
View
@@ -7347,8 +7347,9 @@ def pcolor(self, *args, **kwargs):
# makes artifacts that are often disturbing.
if 'antialiased' in kwargs:
kwargs['antialiaseds'] = kwargs.pop('antialiased')
- if 'antialiaseds' not in kwargs and ec.lower() == "none":
- kwargs['antialiaseds'] = False
+ if 'antialiaseds' not in kwargs and (is_string_like(ec) and
+ ec.lower() == "none"):
+ kwargs['antialiaseds'] = False
collection = mcoll.PolyCollection(verts, **kwargs)

0 comments on commit 1e36405

Please sign in to comment.