In this micro-course, you've learned how to create many different chart types. Now, you'll organize your knowledge, before learning some quick commands that you can use to change the style of your charts.

What have you learned?

Since it's not always easy to decide how to best tell the story behind your data, we've broken the chart types into three broad categories to help with this.

Changing styles with seaborn

All of the commands have provided a nice, default style to each of the plots. However, you may find it useful to customize how your plots look, and thankfully, this can be accomplished by just adding one more line of code!

As always, we need to begin by setting up the coding environment. (This code is hidden, but you can un-hide it by clicking on the "Code" button immediately below this text, on the right.)

We'll work with the same code that we used to create a line chart in a previous tutorial. The code below loads the dataset and creates the chart.

We can quickly change the style of the figure to a different theme with only a single line of code.

Seaborn has five different themes: (1)"darkgrid", (2)"whitegrid", (3)"dark", (4)"white", and (5)"ticks", and you need only use a command similar to the one in the code cell above (with the chosen theme filled in) to change it.

In the upcoming exercise, you'll experiment with these themes to see which one you like most!

What's next?

Explore seaborn styles in a quick coding exercise!


Have questions or comments? Visit the Learn Discussion forum to chat with other Learners.