ENH: When displaying images using matplotlib, use the grey colormap by default.

This commit is contained in:
Stefan van der Walt
2012-02-02 17:06:06 -08:00
parent f9907ffd21
commit a322c0d676
+1
View File
@@ -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