Browse code

예제 추가

Ikseon Kang authored on14/07/2019 12:59:30
Showing2 changed files

1 1
new file mode 100644
... ...
@@ -0,0 +1,11 @@
1
+
2
+import seaborn as sns
3
+import pandas as pd
4
+import numpy as np
5
+import matplotlib.pyplot as plt
6
+
7
+df = pd.DataFrame(dict(time=np.arange(500),
8
+                       value=np.random.randn(500).cumsum()))
9
+g = sns.relplot(x="time", y="value", kind="line", data=df)
10
+
11
+plt.show()
0 12
new file mode 100644
... ...
@@ -0,0 +1,13 @@
1
+import seaborn as sns
2
+import matplotlib.pyplot as plt
3
+
4
+sns.set(style="white")
5
+
6
+df = sns.load_dataset("iris")
7
+
8
+g = sns.PairGrid(df, diag_sharey=False)
9
+g.map_lower(sns.kdeplot)
10
+g.map_upper(sns.scatterplot)
11
+g.map_diag(sns.kdeplot, lw=3)
12
+
13
+plt.show();