From 9ef9045875d09d1ed324ceb398f9133ea0ddb2aa Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Thu, 10 Apr 2014 12:16:14 +1000 Subject: [PATCH] Update lineprofile examples to use returned output --- viewer_examples/plugins/lineprofile.py | 2 +- viewer_examples/plugins/lineprofile_rgb.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/viewer_examples/plugins/lineprofile.py b/viewer_examples/plugins/lineprofile.py index 2f1b2cdc..dd80e277 100644 --- a/viewer_examples/plugins/lineprofile.py +++ b/viewer_examples/plugins/lineprofile.py @@ -6,4 +6,4 @@ from skimage.viewer.plugins.lineprofile import LineProfile image = data.camera() viewer = ImageViewer(image) viewer += LineProfile() -viewer.show() +line, profile = viewer.show()[0] diff --git a/viewer_examples/plugins/lineprofile_rgb.py b/viewer_examples/plugins/lineprofile_rgb.py index 86b71d5d..b08f5a00 100644 --- a/viewer_examples/plugins/lineprofile_rgb.py +++ b/viewer_examples/plugins/lineprofile_rgb.py @@ -6,4 +6,4 @@ from skimage.viewer.plugins.lineprofile import LineProfile image = data.chelsea() viewer = ImageViewer(image) viewer += LineProfile() -viewer.show() +line, profiles = viewer.show()[0]