From 25b9f5d5aa7d46c55121bcaf53f9d826b18e2816 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Thu, 13 Dec 2012 21:12:35 -0500 Subject: [PATCH] BUG: Fix LineTool example after change to call signature x, y parameters were removed for simplicity, but example wasn't updated --- skimage/viewer/canvastools/linetool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skimage/viewer/canvastools/linetool.py b/skimage/viewer/canvastools/linetool.py index 6937f38a..c8287016 100644 --- a/skimage/viewer/canvastools/linetool.py +++ b/skimage/viewer/canvastools/linetool.py @@ -191,6 +191,7 @@ if __name__ == '__main__': ax.imshow(image, interpolation='nearest') h, w = image.shape - # line_tool = LineTool(ax, [w/3, 2*w/3], [h/2, h/2]) - line_tool = ThickLineTool(ax, [w/3, 2*w/3], [h/2, h/2]) + # line_tool = LineTool(ax) + line_tool = ThickLineTool(ax) + line_tool.end_points = ([w/3, h/2], [2*w/3, h/2]) plt.show()