Use imshow of matplotlib.pylab with a python ide?

前端 未结 2 1611
小鲜肉
小鲜肉 2020-12-06 23:34

I tried to run example in photutil

Everything works great except the line

plt.imshow(image, cmap=\'gray_r\', origin=\'lower\')

whi

2条回答
  •  一整个雨季
    2020-12-07 00:11

    # need to use matplotlib inline if want to show at jupyter Notebook
    %matplotlib inline
    plt.imshow(image, cmap='gray_r', origin='lower')
    plt.show()
    

提交回复
热议问题