- 예제 1) seaborn 기초
x = np.linspace(0, 14, 100)
y1 = np.sin(x)
y2 = 2 * np.sin(x+0.5)
y3 = 3 * np.sin(x+1.0)
y4 = 4 * np.sin(x+1.5)
# sns.set_style()
# 'white', 'grid', 'dark', 'darkgrid'
sns.set_style('darkgrid')
plt.figure(figsize=(10,6))
plt.plot(x, y1, x, y2, x, y3, x, y4)
plt.show()
- 예제2) seaborn tips data
- boxplot
- swarmplot
- lmplot
- tips = sns.load_dataset('tips')
- 예제3) flights data
- heatmap
- 예제 4) iris data
- pairplot
- 예제5) anscombe data
- lmplot