python—如何保存在for循环中创建的绘图?
发布时间:2022-06-14 03:32:38 406
相关标签: # node.js
cities = ['Austin', 'DFW', 'Houston', 'San Antonio']
for city in cities:
city = employment_change.plot.barh(x='Industry', y=city, rot=0, legend=False, title=(f'Monthly Change of Employment by Industry in {city} From March to April'), color='#f8971f')
city.set_xlabel('% Change of Employees Gained or Lost')
city.axvline(x=0, linestyle='-', linewidth=2.5, color = '#17191a')
plt.savefig(f'Monthly Change of Employment by Industry in {city} From March to April.png', dpi=300, bbox_inches='tight')
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报