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

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…

Contents