We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 278913d commit 973dd5eCopy full SHA for 973dd5e
lib/matplotlib/rcsetup.py
@@ -912,7 +912,10 @@ def _validate_linestyle(ls):
912
"""
913
# Look first for a valid named line style, like '--' or 'solid'
914
try:
915
- return _validate_named_linestyle(ls)
+ if hasattr(ls, 'decode'):
916
+ return _validate_named_linestyle(ls.decode())
917
+ else:
918
+ return _validate_named_linestyle(ls)
919
except (KeyError, AttributeError):
920
# AttributeError may be raised by ls.lower() that can be called
921
# inside _validate_named_linestyle.
0 commit comments