Remove outside box around matplotlib figures || Despine matplotlib || Matplotlib Tips

preview_player
Показать описание
Learn how to remove the box around the outside of your matplotlib figures in this Matplotlib Tips tutorial. Matplotlib figures come with four spines around the outside by default, but you can turn those off with matplotlib itself or with seaborn. First, I show you how to turn off each individual spine with set_visible. Then we remove the entire border using set_frame_on. I also demo how you can remove spines for all your figures by updating your run commands (rcParams). Finally, I show you my favorite way to despine figures using seaborn's despine utility function.

0:00 Introduction
0:31 Matplotlib - set_visible
2:28 Matplotlib - set_frame_on
2:50 Matplotlib - rcParams
4:00 Seaborn - despine
5:58 - BLOOPERS!

/// GITHUB CODE ///

/// RELATED VIDEOS ///

#matplotlibtips #matplotlib #dataviz
Рекомендации по теме
Комментарии
Автор

Thanks for making my studies so light and eficient.

BrunoAraujo-polm
Автор

Thank you so much! I love all your explanations!

rominasepulveda
Автор

Thankyou very much. Worked like a charm.

ajaygarg
Автор

Amazing Content. You deserve much better reach!! <3

akashbhateja
Автор

Does sns, despine work for all plots or just the current plot, thanks

gabrielade
Автор

Hi great video, please can you make a video about subplots

oscartorres