有没有办法关闭Seaborn Jointplot图中的上边缘图?
tips = sns.load_dataset('tips') g = sns.jointplot( data=tips, x="total_bill", y="tip", hue="smoker", )
发布于 2021-09-30 19:48:59
也许只需要在.ax_marg_x上调用remove。
.ax_marg_x
remove
g.ax_marg_x.remove()
输出:
(请注意,ax_marg_y和ax_joint是剩余的图,详见JointGrid文档)。
ax_marg_y
ax_joint
JointGrid
https://stackoverflow.com/questions/69398013
相似问题