BUG: Fix LineTool example after change to call signature

x, y parameters were removed for simplicity, but example wasn't updated
This commit is contained in:
Tony S Yu
2012-12-13 21:12:35 -05:00
parent 260984c018
commit 25b9f5d5aa
+3 -2
View File
@@ -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()