File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -617,7 +617,8 @@ def get_facecolor(self):
617
617
get_facecolors = get_facecolor
618
618
619
619
def get_edgecolor (self ):
620
- if self ._edgecolors == str ('face' ):
620
+ if (isinstance (self ._edgecolors , six .string_types )
621
+ and self ._edgecolors == str ('face' )):
621
622
return self .get_facecolors ()
622
623
else :
623
624
return self ._edgecolors
@@ -678,7 +679,8 @@ def set_alpha(self, alpha):
678
679
except (AttributeError , TypeError , IndexError ):
679
680
pass
680
681
try :
681
- if self ._edgecolors_original != str ('face' ):
682
+ if (not isinstance (self ._edgecolors_original , six .string_types )
683
+ or self ._edgecolors_original != str ('face' )):
682
684
self ._edgecolors = mcolors .colorConverter .to_rgba_array (
683
685
self ._edgecolors_original , self ._alpha )
684
686
except (AttributeError , TypeError , IndexError ):
You can’t perform that action at this time.
0 commit comments