From the course: Data Analysis with Python and Pandas
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Chart titles
From the course: Data Analysis with Python and Pandas
Chart titles
- [Instructor] Okay, so we just saw an example of using the plot method to create a line chart or a line plot, but everything we plotted was with chart formatting defaults. There are a ton of options for formatting plots in Python. We're going to walk through a handful of the most critical ones, but the sky is the limit, and if you take a look at the bottom of the slide, there is a link to more options for formatting plots. But let's go ahead and take a quick look at the options that we have. We have a bunch of title options. We have colors, we have legends, we have figure size, grid, and we can also create subplots. These are the ones we're going to walk through, and this is by no means exhaustive. Let's start with arguably the most important formatting, which is going to be the chart title. We can add custom chart titles, and access labels to increase understanding. So here, we're specifying our title is March Grocery Sales, our xlabel is Date, and our ylabel is going to be Unit…
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)
The Matplotlib API and the plot() method9m 33s
-
(Locked)
Challenge: Basic line chart49s
-
(Locked)
Solution: Basic line chart3m 1s
-
(Locked)
Chart titles3m 26s
-
(Locked)
Chart colors5m 13s
-
(Locked)
Line styles2m 1s
-
(Locked)
Chart legends and gridlines3m 51s
-
(Locked)
Chart styles4m 8s
-
(Locked)
Challenge: Stylized line chart1m 11s
-
(Locked)
Solution: Stylized line chart1m 21s
-
(Locked)
Subplots and figure size5m 28s
-
(Locked)
Challenge: Subplots1m 33s
-
(Locked)
Solution: Subplots2m 59s
-
(Locked)
Bar charts6m 13s
-
(Locked)
Grouped and stacked bar charts5m 9s
-
(Locked)
Challenge: Bar charts1m 11s
-
(Locked)
Solution: Bar charts2m 19s
-
(Locked)
Pie charts and scatterplots6m 52s
-
(Locked)
Challenge: Scatterplots1m
-
(Locked)
Solution: Scatterplots2m 10s
-
(Locked)
Histograms3m 46s
-
(Locked)
Challenge: Histograms33s
-
(Locked)
Solution: Histograms1m 18s
-
(Locked)
Saving plots and further exploration3m 41s
-
(Locked)
Key takeaways2m 12s
-
(Locked)
-
-
-
-
-