In [1]:
import seaborn as sns
%matplotlib inline
In [2]:
tips = sns.load_dataset('tips')
In [3]:
tips.head()
Out[3]:
In [5]:
sns.lmplot(x='total_bill',y='tip',data=tips)
Out[5]:
In [6]:
sns.lmplot(x='total_bill',y='tip',data=tips,hue='sex')
Out[6]:
In [13]:
sns.lmplot(x='total_bill',y='tip',data=tips,hue='sex',palette='coolwarm')
Out[13]:
In [16]:
# http://matplotlib.org/api/markers_api.html
sns.lmplot(x='total_bill',y='tip',data=tips,hue='sex',palette='coolwarm',
markers=['o','v'],scatter_kws={'s':100})
Out[16]:
In [28]:
sns.lmplot(x='total_bill',y='tip',data=tips,col='sex')
Out[28]:
In [30]:
sns.lmplot(x="total_bill", y="tip", row="sex", col="time",data=tips)
Out[30]:
In [24]:
sns.lmplot(x='total_bill',y='tip',data=tips,col='day',hue='sex',palette='coolwarm')
Out[24]:
In [36]:
sns.lmplot(x='total_bill',y='tip',data=tips,col='day',hue='sex',palette='coolwarm',
aspect=0.6,size=8)
Out[36]: