我终于设法把我的hexbin发行区划分成一个几乎漂亮的东西。在
import seaborn as sns
x = req.apply_clicks
y = req.reqs_wordcount
sns.jointplot(x, y, kind="hex", color="#5d5d60",
joint_kws={'gridsize':40, 'bins':'log'})
但我希望在上面覆盖一条回归线,却不知道该怎么做。例如,当我在代码中添加regplot时,回归线似乎占据了边缘图:
^{pr2}$如何在图表主体中包含回归线?在
您需要指定希望
regplot
出现的轴。以下是一个示例,其中包含一些虚构的数据:相关问题 更多 >
编程相关推荐