Removing spines from the figure

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, the location of the spines can be adjusted as well.

seaborn.despine has to be called after calling the Seaborn plotting functions.

Here are the results of different combinations of parameters in the seaborn.despine function:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset