From a322c0d676289197df1520d3235918be2409a770 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Thu, 2 Feb 2012 17:06:06 -0800 Subject: [PATCH] ENH: When displaying images using matplotlib, use the grey colormap by default. --- skimage/io/_plugins/matplotlib_plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/skimage/io/_plugins/matplotlib_plugin.py b/skimage/io/_plugins/matplotlib_plugin.py index f578ecb9..652c8be1 100644 --- a/skimage/io/_plugins/matplotlib_plugin.py +++ b/skimage/io/_plugins/matplotlib_plugin.py @@ -2,6 +2,7 @@ import matplotlib.pyplot as plt def imshow(*args, **kwargs): kwargs.setdefault('interpolation', 'nearest') + kwargs.setdefault('cmap', 'gray') plt.imshow(*args, **kwargs) imread = plt.imread