我正在处理图像,并且为了进行调试,我希望在处理之前和之后都看到图像。我正在使用pycharm。我可以同时显示2个图像,一个窗口中显示一个吗?
您可以尝试
import matplotlib.pyplot as plt f, ax = plt.subplots(1,2) ax[0].imshow(img1) #first image ax[1].imshow(img2) #second image plt.show()