File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,7 @@ def set_edgecolor(self, color):
251
251
"""
252
252
if color is None :
253
253
color = mpl .rcParams ['patch.edgecolor' ]
254
+ self ._original_edgecolor = color
254
255
self ._edgecolor = colors .colorConverter .to_rgba (color , self ._alpha )
255
256
256
257
def set_ec (self , color ):
@@ -304,8 +305,7 @@ def set_alpha(self, alpha):
304
305
artist .Artist .set_alpha (self , alpha )
305
306
self .set_facecolor (self ._original_facecolor ) # using self._fill and
306
307
# self._alpha
307
- self ._edgecolor = colors .colorConverter .to_rgba (
308
- self ._edgecolor [:3 ], self ._alpha )
308
+ self .set_edgecolor (self ._original_edgecolor )
309
309
310
310
def set_linewidth (self , w ):
311
311
"""
@@ -421,9 +421,10 @@ def draw(self, renderer):
421
421
if rgbFace [3 ] == 0 :
422
422
rgbFace = None # (some?) renderers expect this as no-fill signal
423
423
424
- gc .set_alpha (self ._edgecolor [3 ])
425
424
if self ._edgecolor [3 ] == 0 :
426
425
gc .set_alpha (self ._facecolor [3 ])
426
+ else :
427
+ gc .set_alpha (self ._edgecolor [3 ])
427
428
428
429
if self ._hatch :
429
430
gc .set_hatch (self ._hatch )
You can’t perform that action at this time.
0 commit comments