ENH: Use nearest neighbor interpolation by default in matplotlib plugin.

This commit is contained in:
Stefan van der Walt
2012-01-27 17:02:21 -08:00
parent 3725f44460
commit f9907ffd21
+8 -1
View File
@@ -1,4 +1,11 @@
from matplotlib.pyplot import imshow, show, imread
import matplotlib.pyplot as plt
def imshow(*args, **kwargs):
kwargs.setdefault('interpolation', 'nearest')
plt.imshow(*args, **kwargs)
imread = plt.imread
show = plt.show
def _app_show():
show()