Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
函数文档savefig()说支持的文件格式列表取决于使用的后端。如何获取特定后端支持的图像格式列表?
savefig()
你只需要问canvas:
canvas
plt.gcf().canvas.get_supported_filetypes()
或者
plt.gcf().canvas.get_supported_filetypes_grouped()
文件