mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-28 12:28:23 +08:00
17 lines
300 B
Python
17 lines
300 B
Python
import matplotlib.pyplot as plt
|
|
|
|
|
|
def imshow(*args, **kwargs):
|
|
if plt.gca().has_data():
|
|
plt.figure()
|
|
kwargs.setdefault('interpolation', 'nearest')
|
|
kwargs.setdefault('cmap', 'gray')
|
|
plt.imshow(*args, **kwargs)
|
|
|
|
imread = plt.imread
|
|
show = plt.show
|
|
|
|
|
|
def _app_show():
|
|
show()
|