From 400c3fd20228a6617f0b22be8ed8c04b5fc834a9 Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Thu, 15 Jan 2015 15:44:55 +1100 Subject: [PATCH] Rename ax to ax_im in mpl imshow plugin --- skimage/io/_plugins/matplotlib_plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/io/_plugins/matplotlib_plugin.py b/skimage/io/_plugins/matplotlib_plugin.py index 187cab22..ca3e6f90 100644 --- a/skimage/io/_plugins/matplotlib_plugin.py +++ b/skimage/io/_plugins/matplotlib_plugin.py @@ -27,7 +27,7 @@ def imshow(im, *args, **kwargs): Returns ------- - ax : `matplotlib.pyplot.AxesImage` + ax_im : `matplotlib.pyplot.AxesImage` The `AxesImage` object returned by `plt.imshow`. """ if plt.gca().has_data(): @@ -59,10 +59,10 @@ def imshow(im, *args, **kwargs): kwargs.setdefault('cmap', 'gray') kwargs.setdefault('vmin', lo) kwargs.setdefault('vmax', hi) - ax = plt.imshow(im, *args, **kwargs) + ax_im = plt.imshow(im, *args, **kwargs) if not supported_dtype or out_of_range_float or low_dynamic_range: plt.colorbar() - return ax + return ax_im imread = plt.imread show = plt.show