savefig() (Matplotlib)

fig.savefig() (or plt.savefig()) writes a Matplotlib figure to an image file such as PNG, PDF, or SVG.