< p>
JointPlot
文档没有显示标题:它可以设置吗?
http://seaborn.pydata.org/generated/seaborn.jointplot.html?highlight=reg
JointPlot
文档没有显示标题:它可以设置吗?
http://seaborn.pydata.org/generated/seaborn.jointplot.html?highlight=reg
这对我起作用了
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
plt.suptitle("在此输入您的标题")
。 - Romeo Valentin'JointGrid'
对象的suptitle
时出现了一个属性错误Attribute Error
,所以这个方法没有起作用。为了修复它,需要添加plt.fig.suptitle("Your title here")
。 - Shitij Govil