Replace Axes with AxesImage where relevant

This commit is contained in:
Juan Nunez-Iglesias
2015-01-14 20:13:32 +11:00
parent fab4ff2305
commit 984e22b47a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ def show():
>>> import skimage.io as io
>>> for i in range(4):
... ax = io.imshow(np.random.rand(50, 50))
... ax_im = io.imshow(np.random.rand(50, 50))
>>> io.show() # doctest: +SKIP
'''
+2 -2
View File
@@ -27,8 +27,8 @@ def imshow(im, *args, **kwargs):
Returns
-------
ax : `matplotlib.pyplot.Axes`
The axes showing the image.
ax : `matplotlib.pyplot.AxesImage`
The `AxesImage` object returned by `plt.imshow`.
"""
if plt.gca().has_data():
plt.figure()