The course below is all about data visualization:
Matplotlib can save plots directly to a file using savefig().
The method can be used like this:
To change the format, simply change the extension like so:
You can open your file using
or open it in an image or pdf viewer,