-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcatplot.py
41 lines (31 loc) · 801 Bytes
/
catplot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import matplotlib.pyplot as plt
import seaborn as sns
from imports import tips
# Strip plot
sns.catplot(x="day", y="total_bill", data=tips, kind="strip")
plt.title('strip')
plt.show()
# Swarm plot
sns.catplot(x="day", y="total_bill", data=tips, kind="swarm")
plt.title('swarm')
plt.show()
# Box plot
sns.catplot(x="day", y="total_bill", data=tips, kind="box")
plt.title('box')
plt.show()
# Violin plot
sns.catplot(x="day", y="total_bill", data=tips, kind="violin")
plt.title('violin')
plt.show()
# Point plot
sns.catplot(x="day", y="total_bill", data=tips, kind="point")
plt.title('point')
plt.show()
# Bar plot
sns.catplot(x="day", y="total_bill", data=tips, kind="bar")
plt.title('bar')
plt.show()
# Count plot
sns.catplot(x="day", data=tips, kind="count")
plt.title('count')
plt.show()