python - 如何在 Seaborn JointPlot 上设置标题?
问题描述
文档没有显示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
推荐阅读
- asp.net-core - 什么可能导致关联 cookie 无法在特定设备上返回
- yii2 - 如何调试 Yii2 迁移?
- listview - Xamarin 表单列表视图 - 数据模板到列
- java - ThreadMXBean.getThreadAllocatedBytes(long id)中包含哪些JVM运行时数据区
- java - 无法使用 Java 读取包含阿拉伯语内容的 Excel 文件
- javascript - 如何在 Jquery 中多次调用一个函数来添加一个事件监听器而不只是监听最后一个?
- sql - 设置声明的参数值和 CONCAT 列名
- c - 结构指针成员的分段错误(核心转储)
- xpath - Google Sheets IMPORTXML XPath 帮助(了解如何阅读页面源代码)
- python - Python中的匹配间隔(纬度/经度)和时间