In [2]:
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
tips = sns.load_dataset('tips')
In [15]:
sns.countplot(x='sex',data=tips)
Out[15]:
In [16]:
sns.set_style('darkgrid')
sns.countplot(x='sex',data=tips)
#darkgrid, whitegrid, dark, white, ticks
Out[16]:
In [6]:
sns.set_style('dark')
sns.countplot(x='sex',data=tips)
#darkgrid, whitegrid, dark, white, ticks
Out[6]:
In [17]:
sns.set_style('ticks')
sns.countplot(x='sex',data=tips)
#darkgrid, whitegrid, dark, white, ticks
Out[17]:
In [8]:
sns.set_style('whitegrid')
sns.countplot(x='sex',data=tips)
#darkgrid, whitegrid, dark, white, ticks
Out[8]:
In [18]:
#sns.set_style('whitegrid')
sns.countplot(x='sex',data=tips)
sns.despine()
In [11]:
sns.set_style('white')
sns.countplot(x='sex',data=tips)
sns.despine()
In [19]:
sns.countplot(x='sex',data=tips)
sns.despine(left=True)
In [17]:
# Non Grid Plot
plt.figure(figsize=(12,12))
sns.countplot(x='sex',data=tips)
Out[17]:
In [20]:
sns.set_context('poster')
sns.countplot(x='sex',data=tips,palette='coolwarm')
Out[20]:
In [22]:
sns.set_context('poster',font_scale=2)
sns.countplot(x='sex',data=tips,palette='coolwarm')
Out[22]:
In [6]:
sns.set_context('poster',font_scale=3)
sns.countplot(x='sex',data=tips,palette='coolwarm')
Out[6]:
In [26]:
#sns.set_context('notebook')
sns.countplot(x='sex',data=tips,palette='coolwarm')
Out[26]:
In [28]:
# Grid Type Plot
sns.lmplot(x='total_bill',y='tip',data=tips)
Out[28]:
In [9]:
# Grid Type Plot
sns.lmplot(x='total_bill',y='tip',data=tips,hue="sex")
Out[9]:
In [12]:
sns.lmplot(x='total_bill',y='tip',data=tips,hue="sex",palette="coolwarm")
Out[12]:
In [13]:
sns.lmplot(x='total_bill',y='tip',data=tips,hue="sex",palette="flag")
Out[13]:
In [14]:
sns.lmplot(x='total_bill',y='tip',data=tips,hue="sex",palette="spring")
Out[14]:
No comments:
Post a Comment