calamari.exceptions.UnknownFigureFormatError#

exception calamari.exceptions.UnknownFigureFormatError#

A figure was asked to save in a format matplotlib’s canvas cannot write.

Raised by calamari.plot.save() before any file is written. The check runs over every requested format up front so that save(ax, "fig1", formats=("pdf", "pgn")) leaves nothing behind rather than a PDF beside a traceback – a half-written set of sibling files is the confusing outcome a multi-format save exists to avoid. The message names the path, the offending format, and the formats the current backend supports.