14

函数文档savefig()说支持的文件格式列表取决于使用的后端。如何获取特定后端支持的图像格式列表?

4

1 回答 1

25

你只需要问canvas

plt.gcf().canvas.get_supported_filetypes()

或者

plt.gcf().canvas.get_supported_filetypes_grouped()

文件

于 2013-02-21T16:29:58.790 回答