mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-04 13:14:23 +08:00
FIX: only reset axes when gray <-> rgb, not every update
This commit is contained in:
@@ -107,10 +107,7 @@ class LineProfile(PlotPlugin):
|
||||
scan = profile_line(self.image_viewer.original_image, end_points,
|
||||
linewidth=self.line_tool.linewidth)
|
||||
|
||||
try:
|
||||
if scan[1].shape != len(self.profile):
|
||||
self.reset_axes(scan)
|
||||
except:
|
||||
if scan[1].shape != len(self.profile):
|
||||
self.reset_axes(scan)
|
||||
|
||||
for i in range(len(scan[0])):
|
||||
|
||||
Reference in New Issue
Block a user