复杂 jointplot
jointplot 是对许多 JointGrid 函数的便捷封装。
不过,您也可以在标准的 jointplot 上叠加一些 JointGrid 图。
在这个示例中,我们将比较被标记为 casual 与 registered 的骑行者在不同变量上的分布差异。
本练习是课程的一部分
Seaborn 数据可视化进阶
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Create a jointplot of temp vs. casual riders
# Include a kdeplot over the scatter plot
g = sns.___(x="temp",
y="casual",
kind='___',
data=df,
marginal_kws=dict(bins=10))
g.plot_joint(sns.___)
plt.show()
plt.clf()