我使用seaborn.clustermap()绘制了如下所示的clustermap
labels = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v"]
sns.clustermap(data, cmap=sns.cm.rocket_r, xticklabels=labels, yticklabels=labels)
字符串
x1c 0d1x的数据
很明显有两个集群,“m”,“o”,“d”,“n”,“p”与其余的。现在我想添加阴影线(“//”)到“m”,“o”,“d”,“n”,“p”的行和列来突出差异,我怎么做?谢谢。
1条答案
按热度按时间l5tcr1uw1#
我通过下面这个问题的答案找到了如何做到这一点:adding hatches to seaborn heatmap plot
字符串