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

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…

Contents