Merge pull request #116 from stefanv/matplotlib_interpolation

ENH: Use nearest neighbor interpolation by default in matplotlib plugin.
This commit is contained in:
tonysyu
2012-02-05 19:26:32 -08:00
+9 -1
View File
@@ -1,4 +1,12 @@
from matplotlib.pyplot import imshow, show, imread
import matplotlib.pyplot as plt
def imshow(*args, **kwargs):
kwargs.setdefault('interpolation', 'nearest')
kwargs.setdefault('cmap', 'gray')
plt.imshow(*args, **kwargs)
imread = plt.imread
show = plt.show
def _app_show():
show()