問題:
在pycharm中,圖片不能顯示,代碼如下:
import matplotlib.pyplot as plt
fig=plt.figure()
ax1=fig.add_subplot(2,2,1)
結果顯示:
Figure(640*480)
處理方法:
只需要加上'plt.show'就可以了
print(plt.show(ax1))
問題:
在pycharm中,圖片不能顯示,代碼如下:
import matplotlib.pyplot as plt
fig=plt.figure()
ax1=fig.add_subplot(2,2,1)
結果顯示:
Figure(640*480)
處理方法:
只需要加上'plt.show'就可以了
print(plt.show(ax1))