2021-05-01 14:26:57
问题:
在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))
原文链接:http://www.yuepc.com/a/30922.html
http://www.yuepc.com 为 “沈一博客” 唯一官方服务平台,请勿相信其他任何渠道。
2021-04-06
2021-02-05
2021-06-04
2021-05-02
2021-05-01
2021-03-29
2021-08-05
2021-06-10
2021-05-03
2021-05-20