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

Discussão em 'Python' iniciado por Stack, Março 18, 2025.

  1. Stack

    Stack Membro Participativo

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

    This parameters takes 'one of the file extensions supported by the active backend' (as said by the official documentation).

    My point is: how to know, for a specific backend, the list of supported extensions?

    The list of available backends is accessible thru matplotlib.rcsetup.all_backends. These backends are available in matplotlib.backends but, I do not find a way to retrieve supported extensions.

    Continue reading...

Compartilhe esta Página