From the course: Python for Marketing (2019)
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Adding a title to your plot - Python Tutorial
From the course: Python for Marketing (2019)
Adding a title to your plot
- [Instructor] In this video we're going to talk about adding titles to charts and plots. If your chart is not labeled correctly, then the person you're showing it to has to think about this or maybe you're not even there to kind of explain it, so what you need to make sure that your title is clear to what you're trying to show the person and in fact is actually there because I've read many charts with no title and I've had to guess what it's about. Hopefully I guessed right or I've made some bad decisions. But that is why you need to have good, clear titles and I'm going to show you how to do this. So, we have plot of click views and page views. Page views is sitting on the Y axis and the colors are custom. We have custom width and position also. What we want to do is give this chart a title and how we do this is we use plt.title and then we just write a string of text describing what the title is about. And I will run…
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)
Custom visualizations in Python42s
-
(Locked)
Import, explore, and plot a basic chart4m 48s
-
(Locked)
Creating Matplotlib subplots2m 59s
-
(Locked)
Plotting a secondary y-axis2m 40s
-
(Locked)
Adding x and y labels to a plot2m 40s
-
(Locked)
Rotating xticks labels on plot2m 1s
-
(Locked)
Adding a legend to a plot1m 5s
-
(Locked)
Adding a title to your plot1m 26s
-
(Locked)
Adding annotations to plots3m
-
(Locked)
Switching between Matplotlib styles1m 3s
-
(Locked)
Using a scatter plot in Seaborn1m 8s
-
(Locked)
Customizing a scatter plot in Seaborn2m 21s
-
(Locked)
Creating a Facebook Ads heatmap in Seaborn2m 56s
-
(Locked)
-
-
-
-