mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-30 11:41:38 +08:00
Fix incorrect call to colorbar
This commit is contained in:
1 parent
c68c8e5468
commit
fab4ff2305
1 file changed
+1
-1
@@ -60,7 +60,7 @@ def imshow(im, *args, **kwargs):
|
||||
kwargs.setdefault('vmax', hi)
|
||||
ax = plt.imshow(im, *args, **kwargs)
|
||||
if not supported_dtype or out_of_range_float or low_dynamic_range:
|
||||
ax.colorbar()
|
||||
plt.colorbar()
|
||||
return ax
|
||||
|
||||
imread = plt.imread
|
||||
|
||||
Reference in new issue
Block a user