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.
Basics of Matplotlib - Python Tutorial
From the course: Python for Data Visualization
Basics of Matplotlib
- [Instructor] In this video, we're going to learn about the Matplotlib library, which is a powerful tool capable of producing complex publication-quality figures with fine layout control in two or three dimensions. While this is an older library, so many libraries are built on top of it and use its syntax. The first thing we have to do is import the libraries we're going to use. We're going to utilize the pandas and NumPy libraries to manipulate data in a format that's suitable for plotting. We're going to import matplotlib.pyplot as PLT, and PLT is just an alias for the matplotlib.pyplot module. And lastly, we're going to import the seaborn library, which is a wrapper for Matplotlib as SNS. Before we can graph data, we have to have data in a form that's suitable for graphing. So we're first going to import the car loan data into a pandas data frame. We're next going to look at the first five rows of the data frame as this…
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)
-
-