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 9ae7265 commit 97234b5Copy full SHA for 97234b5
lib/matplotlib/rcsetup.py
@@ -911,12 +911,11 @@ def _validate_linestyle(ls):
911
the on-off ink sequences.
912
"""
913
# Look first for a valid named line style, like '--' or 'solid'
914
- try:
915
- return _validate_named_linestyle(ls)
916
- except (KeyError, AttributeError):
917
- # AttributeError may be raised by ls.lower() that can be called
918
- # inside _validate_named_linestyle.
919
- pass
+ if isinstance(ls, six.string_types):
+ try:
+ return _validate_named_linestyle(ls)
+ except (KeyError):
+ pass
920
921
# On-off ink (in points) sequence *of even length*.
922
# Offset is set to None.
0 commit comments