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

Veröffentlicht am: 05 April 2021
auf dem Kanal: Kimberly Fessel
6,409
143

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 ///
https://github.com/kimfetti/Videos/bl...

/// RELATED VIDEOS ///
Full Matplotlib Tips Playlist:    • Matplotlib Tips  
6 Smart Matplotlib Options:    • 6 Smart Matplotlib Options #Shorts  
Intro to Seaborn Playlist:    • Intro to Seaborn  

#matplotlibtips #matplotlib #dataviz


Auf dieser Seite können Sie das Online-Video Remove outside box around matplotlib figures || Despine matplotlib || Matplotlib Tips mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Kimberly Fessel 05 April 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 6,409 Mal angesehen und es wurde von 143 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!