Skip to content

Commit

Permalink
fix slider polygon on move; this is already fixed in master
Browse files Browse the repository at this point in the history
  • Loading branch information
jdh2358 committed Mar 17, 2012
1 parent d58bcce commit 80cdde2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ def _update(self, event):

def set_val(self, val):
xy = self.poly.xy
xy[-1] = val, 0
xy[-2] = val, 1
xy[2] = val, 1
xy[3] = val, 0
self.poly.xy = xy
self.valtext.set_text(self.valfmt%val)
if self.drawon: self.ax.figure.canvas.draw()
Expand Down

0 comments on commit 80cdde2

Please sign in to comment.