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 - Python Tutorial
From the course: Python for Data Visualization
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Basics of Matplotlib3m 49s
-
(Locked)
Set marker type and colors1m 52s
-
(Locked)
MATLAB-style vs. object syntax2m 7s
-
(Locked)
Set titles, labels, and limits4m 21s
-
(Locked)
Add grids2m 26s
-
(Locked)
Create legends1m 25s
-
(Locked)
Save plots to files2m 28s
-
(Locked)
Create plots with Matplotlib wrappers5m
-
(Locked)
-
-