plotpick.py: Force a redraw after changing the mouse-move crosshairs
authorW. Trevor King <wking@tremily.us>
Sun, 12 May 2013 18:17:43 +0000 (14:17 -0400)
committerW. Trevor King <wking@tremily.us>
Sun, 12 May 2013 18:17:43 +0000 (14:17 -0400)
There should be a way to just redraw the axes in question, but I'm not
sure what it is.

posts/plotpick/plotpick.py

index b12eff5c38f58c383617c11a60278e886923a692..dfdf782d9e2ca40e15ce8da09af5ad2f36cb4c56 100755 (executable)
@@ -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))