mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-05 13:21:12 +08:00
ENH: When displaying images using matplotlib, use the grey colormap by default.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user