From 6442bf5f0c2e8aa4c77438c7e90adf3014e9bc56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Fri, 10 Jun 2016 11:50:07 +0200 Subject: [PATCH] Use gray cmap --- skimage/filters/thresholding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/filters/thresholding.py b/skimage/filters/thresholding.py index 3b226779..3fac4a26 100644 --- a/skimage/filters/thresholding.py +++ b/skimage/filters/thresholding.py @@ -49,12 +49,12 @@ def _try_all(image, methods=None, figsize=None, num_cols=2, verbose=True): subplot_kw={'adjustable': 'box-forced'}) ax = ax.ravel() - ax[0].imshow(image) + ax[0].imshow(image, cmap=plt.cm.gray) ax[0].set_title('Original') i = 1 for name, func in methods.items(): - ax[i].imshow(func(image)) + ax[i].imshow(func(image), cmap=plt.cm.gray) ax[i].set_title(name) i += 1 if verbose: