mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-08 03:46:28 +08:00
ENH: Use nearest neighbor interpolation by default in matplotlib plugin.
This commit is contained in:
@@ -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