Introduction to Data Visualization with Seaborn
Erin Case
Data Scientist


Seaborn plots create two different types of objects: FacetGrid and AxesSubplot
g = sns.scatterplot(x="height", y="weight", data=df)type(g)
> matplotlib.axes._subplots.AxesSubplot

| Object Type | Plot Types | Characteristics |
|---|---|---|
FacetGrid |
relplot(), catplot() |
Can create subplots |
AxesSubplot |
scatterplot(), countplot(), etc. |
Only creates a single plot |
g = sns.catplot(x="Region", y="Birthrate", data=gdp_data, kind="box")g.fig.suptitle("New Title")plt.show()

g = sns.catplot(x="Region",
y="Birthrate",
data=gdp_data,
kind="box")
g.fig.suptitle("New Title",
y=1.03)
plt.show()

Introduction to Data Visualization with Seaborn