mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-30 13:40:44 +08:00
ENH: Use nearest neighbor interpolation by default in matplotlib plugin.
This commit is contained in:
1 parent
3725f44460
commit
f9907ffd21
1 file changed
+8
-1
@@ -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()
|
||||
Reference in new issue
Block a user