From the course: Python for Data Visualization

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Save plots to files

Save plots to files

- [Instructor] In this video, we're going to go over how to save your plots to files. Saving your visualizations outside your Jupyter Notebook is important as it allows you to show your visualizations to others. Equally important is checking your saved visualization because there's always a possibility the graph doesn't look the same in the notebook as in the image file. So the first thing we're going to do is for this notebook, we're going to use a seaborn style in Matplotlib. This will make our graph more aesthetically pleasing. Using the MATLAB style of Matplotlib, we're going to save our file using plt.savefig. This is where we're saving our image. This is our DPI, you can think of it as resolution, and it's really important now that we have this outputted image in our Jupyter Notebook, let's now see how the image saved. Let's start by looking inside the Images folder for the filename MS Legend Cutoff. You'll see…

Contents