mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-31 12:41:20 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user