In Matplotlib, is there a way to know the list of available output format

前端 未结 3 1420
逝去的感伤
逝去的感伤 2021-01-03 18:39

According to Matplotlib documentation, matplotlib.figure.save_figtakes an optional argument format (see matplotlib.figure documentation).

T

3条回答
  •  轮回少年
    2021-01-03 19:05

    Here is a list of renderers and file types: http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend Beyond that, individual backends have get_supported_filetypes method in their respective FigureCanvas{backend-name} class that gives a list of supported file formats.

提交回复
热议问题