From: W. Trevor King Date: Sun, 12 May 2013 18:17:43 +0000 (-0400) Subject: plotpick.py: Force a redraw after changing the mouse-move crosshairs X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e0782940fa8c0fd9458acf648cc9b2a51cf44fed;p=blog.git plotpick.py: Force a redraw after changing the mouse-move crosshairs There should be a way to just redraw the axes in question, but I'm not sure what it is. --- diff --git a/posts/plotpick/plotpick.py b/posts/plotpick/plotpick.py index b12eff5..dfdf782 100755 --- a/posts/plotpick/plotpick.py +++ b/posts/plotpick/plotpick.py @@ -115,6 +115,7 @@ class Cursor (object): sx = [self.x[i] for i in self.selected] sy = [self.y[i] for i in self.selected] self.highlight_line.set_data(sx, sy) + draw() else: print('{}\t{}\t{}'.format(x, y, i))