mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-20 12:40:31 +08:00
Don't create new plot automatically
This behavior is a bit too magical and may interfere with creation of interactive ImageCollection browsers, for example.
This commit is contained in:
@@ -136,8 +136,6 @@ def imshow(im, *args, **kwargs):
|
||||
ax_im : `matplotlib.pyplot.AxesImage`
|
||||
The `AxesImage` object returned by `plt.imshow`.
|
||||
"""
|
||||
if plt.gca().has_data():
|
||||
plt.figure()
|
||||
lo, hi, cmap = _get_display_range(im)
|
||||
kwargs.setdefault('interpolation', 'nearest')
|
||||
kwargs.setdefault('cmap', cmap)
|
||||
|
||||
Reference in New Issue
Block a user