From 19a3d335730b11085852e29bbe8d358b1cd8c158 Mon Sep 17 00:00:00 2001 From: "Josh Warner (Mac)" Date: Sat, 29 Jun 2013 15:18:53 -0500 Subject: [PATCH] FIX: only reset axes when gray <-> rgb, not every update --- skimage/viewer/plugins/lineprofile.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/skimage/viewer/plugins/lineprofile.py b/skimage/viewer/plugins/lineprofile.py index d15d22b1..af65f081 100644 --- a/skimage/viewer/plugins/lineprofile.py +++ b/skimage/viewer/plugins/lineprofile.py @@ -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])):