While we can use Matplotlib to customize the figure aesthetics, Seaborn comes with several handy functions to make customization easier. If you are using Seaborn version 0.8 or later, seaborn.set()
must be called explicitly after import if you would like to enable the beautiful Seaborn default theme. In earlier versions, seaborn.set()
was called implicitly on import.
The five default themes in Seaborn, namely darkgrid, whitegrid, dark, white, and ticks, can be selected by calling the seaborn.set_style()
function.
To remove or adjust the positions of spines, we can make use of the seaborn.despine
function. By default, the spines on the top and right side of a figure are removed, and additional spines can be removed by setting left=True
or bottom=True
. Through the use of offset and trim parameters...