Matplotlib and seaborn 3 · Basics

Save a chart to a file

Write the figure as PNG, SVG or PDF. bbox_inches="tight" trims the margins.

fig.savefig("chart.png", bbox_inches="tight")

Official Matplotlib and seaborn 3 documentation

More basics commands

All basics commands · Matplotlib and seaborn 3 cheatsheet

Was this page helpful?