Skip to content

Glossary: pandas Basics

savefig

Also written: plt.savefig, tight_layout, plt.close, plt.show

`plt.savefig()` saves a chart as an image, `tight_layout()` fixes spacing so labels aren't cut off, and `close()` clears the chart so the next one starts fresh.

Where the book teaches it

Related terms

matplotlibdpiPNG