From e0782940fa8c0fd9458acf648cc9b2a51cf44fed Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 12 May 2013 14:17:43 -0400 Subject: [PATCH] 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. --- posts/plotpick/plotpick.py | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.26.2