mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-09 11:33:41 +08:00
Switch plugins to use new tool api
This commit is contained in:
committed by
Steven Silvester
parent
2d9d8bb94c
commit
1775e959d6
@@ -18,7 +18,7 @@ class Crop(Plugin):
|
||||
def attach(self, image_viewer):
|
||||
super(Crop, self).attach(image_viewer)
|
||||
|
||||
self.rect_tool = RectangleTool(self.image_viewer.ax,
|
||||
self.rect_tool = RectangleTool(image_viewer,
|
||||
maxdist=self.maxdist,
|
||||
on_enter=self.crop)
|
||||
self.artists.append(self.rect_tool)
|
||||
|
||||
Reference in New Issue
Block a user