Permalink
Browse files

Fixes bug where linestyle always appears solid if linewidth is large …

…enough
  • Loading branch information...
1 parent ae5c2f1 commit 1e7399f09de356935e3e60c9b66495ce450a2904 @Westacular committed Apr 24, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −1 lib/matplotlib/backend_bases.py
  2. +0 −1 lib/matplotlib/patches.py
@@ -942,7 +942,7 @@ def set_linestyle(self, style):
'dotted' : (0, (1.0, 3.0)),
"""
- if style in self.dashd.keys():
+ if style in self.dashd:
offset, dashes = self.dashd[style]
elif isinstance(style, tuple):
offset, dashes = style
@@ -414,7 +414,6 @@ def draw(self, renderer):
gc.set_antialiased(self._antialiased)
self._set_gc_clip(gc)
- gc.set_capstyle('projecting')
gc.set_url(self._url)
gc.set_snap(self.get_snap())

0 comments on commit 1e7399f

Please sign in to comment.