Skip to content

Commit

Permalink
Merge c7c7005 into b530062
Browse files Browse the repository at this point in the history
  • Loading branch information
Rezangyal committed Dec 19, 2015
2 parents b530062 + c7c7005 commit 6b3e209
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,14 @@ def draw(self, renderer):

gc.set_foreground(self._edgecolor, isRGBA=True)

lw = self._linewidth
if self._edgecolor[3] == 0:
lw = 0
gc.set_linewidth(lw)
gc.set_linestyle(self._linestyle)
if (self._edgecolor[3] == 0 or
self._linestyle in {'none', 'None', ' ', '', None}):
# (some?) renderers expect this as no-edge signal
gc.set_linewidth(0.0)
else:
gc.set_linewidth(self._linewidth)
gc.set_linestyle(self._linestyle)

gc.set_capstyle(self._capstyle)
gc.set_joinstyle(self._joinstyle)

Expand Down

0 comments on commit 6b3e209

Please sign in to comment.