sns.regplot(x="total_bill", y="tip", data=tips) #x轴代表花的钱的数据,y轴对应给小费的数据
lmplot()绘制回归关系图
lmplot是一种集合基础绘图与基于数据建立回归模型的绘图方法。...旨在创建一个方便拟合数据集回归模型的绘图方法,利用hue、col、row参数来控制绘图变量。...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)
参考