This Seaborn FacetGrid tutorial shows you how to make and style a FacetGrid using Python Seaborn. I first introduce you to the concept of small multiples and making Seaborn small multiples with the facet grid. We walk through the row and col options, and I then show you how to use the Seaborn FacetGrid map and map_dataframe methods to add plots to the FacetGrid. I demonstrate how to make a seaborn FacetGrid histogram as well as scatter plots. I then teach you how to style the facet grid using methods and attributes including updating the Seaborn FacetGrid title through title templates and adding axes labels. I also show you how to use sharey and ylim within the facet grid. We next talk about displaying additional categorical data through the Seaborn FacetGrid hue, and I also show you how to add a hue legend. I show you code for updating the palette and how to style a Seaborn FacetGrid KDEplot. Finally, I demo a custom Python function that you can use to customize the facet grid however you like!
0:00 Introduction
0:21 Intro to Small Multiples
1:03 FacetGrid Code Basics
5:49 FacetGrid Methods & Attributes (axes labels, titles, sharey, ylim)
10:16 Hue & Custom Functions
15:18 Conclusion
Github Code:
github.com/kimfetti/Videos/blob/master/Seaborn/16_…
Related Videos:
Seaborn histplot -- • Seaborn histplot | How to make a Seaborn h...
Seaborn scatterplot -- • Seaborn scatter plot | How to make and sty...
Seaborn kdeplot -- • What is kernel density estimation? And how...
Full Intro to Seaborn PLAYLIST -- • Intro to Seaborn
#seaborn #dataviz
コメント