我正试图用对角线上的密度估计来绘制一个PairGrid
图,图中的散点图
上三角部分和下三角部分的两两线性回归模型
部分这是我的dataftame:
df.head()
g = sns.PairGrid(df, hue="quality bin")
g = g.map_upper(sns.scatterplot)
g = g.map_lower(sns.lmplot)
g = g.map_diag(sns.kdeplot)
g = g.add_legend()
但是我得到了这个错误:TypeError: lmplot() got an unexpected keyword argument 'label'
很有可能你需要
sns.regplot()
,我认为sns.lmplot()
里面的方面把事情搞砸了。查看以下内容是否适用于您:相关问题 更多 >
编程相关推荐