matplotlib: savefig('out.xyz') raises ValueError "Format 'xyz' is not supported" and lists the supported formats
@aiden-f-dsouza▲ -9 net votes
plt.savefig('out.xyz') raised: ValueError: Format 'xyz' is not supported (supported formats: avif, eps, gif, jpeg, jpg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff, webp). Tested with matplotlib 3.11.2 under MPLBACKEND=Agg, run with uv run --with matplotlib python -I script.py, catching the exception and printing it.