Style parameters

Let's first take a look at all of the parameters these styles are made up of. We can get the parameters by calling the axes_style method on seaborn, as follows:

sns.axes_style()

The output of the preceding code is as follows:

Each one of the preceding parameters can be customized further. Let's try customizing one of them, as shown in the following snippet:

sns.set()sns.set_style("ticks", {"axes.facecolor": ".1"})sns.boxplot(data=df);

In the preceding code, we set the style to ticks, which has a solid white background, but we can customize this even further by setting facecolor separately. For the preceding code, we will be ...

Get Mastering Exploratory Analysis with pandas now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.