首页 > 解决方案 > 如何在 Seaborn JointPlot 上设置标题?

问题描述

文档没有显示JointPlot标题:可以设置吗?

http://seaborn.pydata.org/generated/seaborn.jointplot.html?highlight=reg

在此处输入图像描述

标签: pythonseaborn

解决方案


这对我有用

p = sns.jointplot(x = 'x_', y = 'y_', data = df, kind="kde")
p.fig.suptitle("Your title here")
p.ax_joint.collections[0].set_alpha(0)
p.fig.tight_layout()
p.fig.subplots_adjust(top=0.95) # Reduce plot to make room 

推荐阅读