BUG: Update measure for change in line_tool API

This commit is contained in:
Tony S Yu
2012-12-13 22:26:26 -05:00
parent 1a199b4405
commit 829479512f
+1 -5
View File
@@ -32,13 +32,9 @@ class Measure(Plugin):
image = image_viewer.original_image
h, w = image.shape
x = [w / 3, 2 * w / 3]
y = [h / 2] * 2
self.line_tool = LineTool(self.image_viewer.ax, x, y,
self.line_tool = LineTool(self.image_viewer.ax,
maxdist=self.maxdist,
on_move=self.line_changed)
# initialize displayed values
self.line_changed(np.transpose((x, y)))
def help(self):
helpstr = ("Measure tool",