mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 01:59:36 +08:00
BUG: Fix renamed parameter
This commit is contained in:
@@ -69,7 +69,7 @@ class LineProfile(PlotPlugin):
|
||||
|
||||
self.line_tool = ThickLineTool(self.image_viewer.ax, x, y,
|
||||
maxdist=self.maxdist,
|
||||
on_update=self.line_changed)
|
||||
on_move=self.line_changed)
|
||||
|
||||
scan_data = profile_line(image, self.end_pts)
|
||||
self.profile = self.ax.plot(scan_data, 'k-')[0]
|
||||
|
||||
@@ -36,7 +36,7 @@ class Measure(Plugin):
|
||||
y = [h / 2] * 2
|
||||
self.line_tool = LineTool(self.image_viewer.ax, x, y,
|
||||
maxdist=self.maxdist,
|
||||
on_update=self.line_changed)
|
||||
on_move=self.line_changed)
|
||||
# initialize displayed values
|
||||
self.line_changed(np.transpose((x, y)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user