mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-23 13:10:18 +08:00
Replace Axes with AxesImage where relevant
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
'''
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user