Browse code

예제 추가

Ikseon Kang authored on14/07/2019 12:38:09
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+import seaborn as sns
2
+import matplotlib.pyplot as plt
3
+
4
+sns.set(style="ticks")
5
+
6
+# Load the example dataset for Anscombe's quartet
7
+df = sns.load_dataset("anscombe")
8
+
9
+# Show the results of a linear regression within each dataset
10
+sns.lmplot(x="x", y="y", col="dataset", hue="dataset", data=df,
11
+           col_wrap=2, ci=None, palette="muted", height=4,
12
+           scatter_kws={"s": 50, "alpha": 1})
13
+
14
+plt.show();