regplot绘制拟合的数据线
sns.regplot(x="total_bill", y="tip", data=tips) #x轴代表花的钱的数据,y轴对应给小费的数据
数据集回归模型的绘图方法,利用hue、col、row参数来控制绘图变量。..., optional #逻辑回归
logx : bool, optional #转化为log(x)
#研究小费tips与总消费金额total_bill在吸烟与不吸烟人之间的关系
g = sns.lmplot...y="Attack",data=pokemon,col="Generation", hue="Generation",col_wrap=3, size=3,order=2)
seaborn.axisgrid.FacetGrid...Def", data=pokemon, hue='Generation', size=5,order=1)
seaborn.axisgrid.FacetGrid at 0x22d8be4b5f8>
参考