Seaborn ile Orta Düzey Veri Görselleştirme
Chris Moffitt
Instructor
matplotlib Axes nesneleriyle yapılırAxes seaborn fonksiyonlarına geçirilebilirfig, ax = plt.subplots()
sns.histplot(df['Tuition'], ax=ax)
ax.set(xlabel='Tuition 2013-14')

axes nesnesi birçok yaygın özelleştirmeyi desteklerfig, ax = plt.subplots()
sns.histplot(df['Tuition'], ax=ax)
ax.set(xlabel="Tuition 2013-14",
ylabel="Dağılım", xlim=(0, 50000),
title="2013-14 Öğrenim ve Harç Dağılımı")

fig, (ax0, ax1) = plt.subplots(nrows=1, ncols=2,
sharey=True, figsize=(7,4))
sns.histplot(df['Tuition'], stat='density', ax=ax0)
sns.histplot(df.query('State == "MN"')['Tuition'], stat='density', ax=ax1)
ax1.set(xlabel='Tuition (MN)', xlim=(0, 70000))
ax1.axvline(x=20000, label='Bütçem', linestyle='--')
ax1.legend()

Seaborn ile Orta Düzey Veri Görselleştirme