---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-94c7929615f2> in <module>()
----> 1 plt.imshow(m)
~/miniconda3/envs/dev/lib/python3.6/site-packages/matplotlib/pyplot.py in imshow(X, cmap, norm, aspect, interpolation, alpha, vmin, vmax, origin, extent, shape, filternorm, filterrad, imlim, resample, url, hold, data, **kwargs)
3078 filternorm=filternorm, filterrad=filterrad,
3079 imlim=imlim, resample=resample, url=url, data=data,
-> 3080 **kwargs)
3081 finally:
3082 ax._hold = washold
~/miniconda3/envs/dev/lib/python3.6/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs)
1708 warnings.warn(msg % (label_namer, func.__name__),
1709 RuntimeWarning, stacklevel=2)
-> 1710 return func(ax, *args, **kwargs)
1711 pre_doc = inner.__doc__
1712 if pre_doc is None:
~/miniconda3/envs/dev/lib/python3.6/site-packages/matplotlib/axes/_axes.py in imshow(self, X, cmap, norm, aspect, interpolation, alpha, vmin, vmax, origin, extent, shape, filternorm, filterrad, imlim, resample, url, **kwargs)
5192 resample=resample, **kwargs)
5193
-> 5194 im.set_data(X)
5195 im.set_alpha(alpha)
5196 if im.get_clip_path() is None:
~/miniconda3/envs/dev/lib/python3.6/site-packages/matplotlib/image.py in set_data(self, A)
598 if (self._A.dtype != np.uint8 and
599 not np.can_cast(self._A.dtype, float, "same_kind")):
--> 600 raise TypeError("Image data cannot be converted to float")
601
602 if not (self._A.ndim == 2
TypeError: Image data cannot be converted to float