From the course: Data Visualization with Matplotlib and Seaborn

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Solution walkthrough

Solution walkthrough

- [Instructor] All right, everybody, welcome back. Let's go ahead and take a look at our solutions. All right, so let's go ahead and import our libraries and read in our production dataset. And just as a reminder, our production dataset had years as rows and countries as columns. So if we wanted to change our RC parameters, one really nice way to do this is to create a dictionary of every parameter you want to change in a given family. So I've commented out some that I'm not actually changing, but just want to illustrate some of the options that you might play with, as well as how a dictionary might look. But we're going to change our top and right spines to be False. And then we use the rc function to specify the group of parameters we want to change and pass in the dictionary, modifying those axis settings. We'll then go ahead and do some data prep. So we needed a DataFrame that had Brazil versus the rest of the world. For our stack plot, we've already created this chart before…

Contents