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:
Juan Nunez-Iglesias
2015-01-15 22:26:55 +11:00
parent e472009090
commit c6dff6942d
-2
View File
@@ -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)