From 984e22b47ab59162277daf691613de64e0682f13 Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Wed, 14 Jan 2015 20:11:19 +1100 Subject: [PATCH] Replace Axes with AxesImage where relevant --- skimage/io/_io.py | 2 +- skimage/io/_plugins/matplotlib_plugin.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/io/_io.py b/skimage/io/_io.py index 646369bd..71f8f25c 100644 --- a/skimage/io/_io.py +++ b/skimage/io/_io.py @@ -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 ''' diff --git a/skimage/io/_plugins/matplotlib_plugin.py b/skimage/io/_plugins/matplotlib_plugin.py index 01a873c0..f6f6a5d3 100644 --- a/skimage/io/_plugins/matplotlib_plugin.py +++ b/skimage/io/_plugins/matplotlib_plugin.py @@ -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()