Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Updated patch to not override alpha on edgecolor if set to none.
  • Loading branch information
cimarronm committed Apr 23, 2013
commit a81ef6ddb4aa322bf1314bccb80201ec4ecaa857
5 changes: 4 additions & 1 deletion lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down