我有一个Pandas数据帧,并尝试将绘图保存到png文件中。然而,似乎有些东西并不像它应该的那样工作。df = pandas.read_csv("this_is_my_csv_file.csv")plot.savefig("myfig.png")AttributeError: 'AxesSubplot' object has no attribut
它为每个州和每个经济体绘制了两个图表。for i in dictionary.keys(): plt.savefig('all.png')
plt.savefig只创建最后一个(第二个)图表的图片。如何将两个图表都保存为png或其他格式的图像。即使在plt.savefig('all.png')之前删除缩进,它仍然不能工作。