如何使用annot
的{{1}}方法为其提供自定义命名方案?
基本上,我想删除所有低于我的阈值的标签(在这种情况下为0)。我试着做@ojy在Custom Annotation Seaborn Heatmap中所说的但是我收到了以下错误。我看到一个例子,有人遍历每个单元格,这是唯一的方法吗?
sns.heatmap
所以我尝试了以下内容:
Seaborn documentation:
annot : bool or rectangular dataset, optional
If True, write the data value in each cell. If an array-like with the same shape as data, then use this to annotate the heatmap instead of the raw data.
在面具(左)之前,在面具之后(右)