Я хотел отобразить изображение с рабочего стола на графике, но получаю ошибку TypeError.
код:
Код: Выделить всё
img = (image) ( here do we need to give the location of the file or the file directly)
imshow(img, extent=[-25,25,-25,25], cmap = cm.bone)
colorbar()
Error: TypeError: Image data can not convert to float
Подробнее здесь: https://stackoverflow.com/questions/346 ... ing-python
Мобильная версия