Always create a colorbar and update tests

This commit is contained in:
Steven Silvester
2015-07-14 07:47:59 -05:00
parent 756b9289c9
commit a8580f76b3
2 changed files with 8 additions and 14 deletions
+1 -2
View File
@@ -147,8 +147,7 @@ def imshow(im, *args, **kwargs):
kwargs.setdefault('vmin', lo)
kwargs.setdefault('vmax', hi)
ax_im = plt.imshow(im, *args, **kwargs)
if cmap != _default_colormap:
plt.colorbar()
plt.colorbar()
return ax_im
imread = plt.imread