From a81ef6ddb4aa322bf1314bccb80201ec4ecaa857 Mon Sep 17 00:00:00 2001 From: Cimarron Mittelsteadt Date: Tue, 23 Apr 2013 15:09:56 -0700 Subject: [PATCH] Updated patch to not override alpha on edgecolor if set to none. --- lib/matplotlib/patches.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 2c8239f4434b..1d24b8a0ab73 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -304,7 +304,10 @@ def set_alpha(self, alpha): artist.Artist.set_alpha(self, alpha) self.set_facecolor(self._original_facecolor) # using self._fill and # self._alpha - self._edgecolor = colors.colorConverter.to_rgba( + + # Don't set alpha if edgecolor set to 'none' - (0.0, 0.0, 0.0, 0.0) + if self._edgecolor != (0.0, 0.0, 0.0, 0.0): + self._edgecolor = colors.colorConverter.to_rgba( self._edgecolor[:3], self._alpha) def set_linewidth(self, w):