mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-10 12:40:08 +08:00
Merge pull request #116 from stefanv/matplotlib_interpolation
ENH: Use nearest neighbor interpolation by default in matplotlib plugin.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user