2024-04-19 10:04:38 发布
网友
如何为for循环中生成的每个图保存一个图
这是我的密码:
for frame in all_frames: test[frame.columns[0]].plot(kind = 'line', x = 'date') plt.ylabel('Percent Change from Month and Year Prior')
只需在for循环中添加^{}:
for
for frame in all_frames: test[frame.columns[0]].plot(kind = 'line', x = 'date') plt.ylabel('Percent Change from Month and Year Prior') plt.savefig('{}'.format(frame.columns[0]))
只需在} :
for
循环中添加^{相关问题 更多 >
编程相关推荐