mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-08 11:26:12 +08:00
Rename ax to ax_im in mpl imshow plugin
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user