projects
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
086334f
)
plotpick.py: Force a redraw after changing the mouse-move crosshairs
author
W. Trevor King
<wking@tremily.us>
Sun, 12 May 2013 18:17:43 +0000
(14:17 -0400)
committer
W. 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
patch
|
blob
|
history
diff --git
a/posts/plotpick/plotpick.py
b/posts/plotpick/plotpick.py
index b12eff5c38f58c383617c11a60278e886923a692..dfdf782d9e2ca40e15ce8da09af5ad2f36cb4c56 100755
(executable)
--- 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))