python - 如何在 seaborn 热图中不仅标注大于 x 的值
问题描述
我不仅想在我的 seaborn 热图中标注大于 0.4 的值。
这是我的代码:
sns.set(font_scale=0.6)
sns.set(font_scale=0.6)
ax= sns.heatmap(corr, mask=mask, cmap=cmap, vmin=-1, vmax=+1, center=0,
square=True, linewidths=.1, cbar_kws={"shrink": .82},annot=True,
fmt='.1',annot_kws={"size":7})
ax.set_xticklabels(ax.get_xticklabels(), rotation=60)
这就是我得到的: 在此处输入图像描述
谢谢
解决方案
推荐阅读
- jquery - 如何在 JQuery Mobile 的列表视图中垂直对齐文本?
- python - Python查询中的SQLAlchemy通过错误的模型进行过滤
- animation - UE4:将动画帧设置为姿势
- apache-kafka - Flink:可以有两个有序的输出吗?
- ios - 在另一个方向设置新的根视图控制器时的 ios15 状态栏动画
- amazon-web-services - 我使用 API Gateway、Lambda、负载均衡器创建了一些 REST API。现在如何在一个 Docker 文件中发送完整的设置?可能吗?
- vue.js - 创建基于按钮单击事件动态创建的 Konvajs 形状和连接
- go - 有条件地构建查询并保持公共部分以不同方式执行
- spring - 从前端发送后,数据被发送到数据库为空
- api - 单独的 UI 和 API 项目 .NET Core 登录检查