Introductie tot datavisualisatie met Seaborn
Content Team
DataCamp


Seaborn-plots maken twee objecttypen: FacetGrid en AxesSubplot
g = sns.scatterplot(x="height", y="weight", data=df)type(g)
> matplotlib.axes._subplots.AxesSubplot

| Objecttype | Plottypen | Kenmerken |
|---|---|---|
FacetGrid |
relplot(), catplot() |
Kan subplotten maken |
AxesSubplot |
scatterplot(), countplot(), enz. |
Maakt slechts één plot |
g = sns.catplot(x="Region", y="Birthrate", data=gdp_data, kind="box")g.figure.suptitle("New Title")plt.show()

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

Introductie tot datavisualisatie met Seaborn