【发布时间】:2020-02-15 17:56:19
【问题描述】:
我正在绘制一个 seaborn clustermap,但在定位颜色条标签时遇到了问题。这是我的代码:
heatmap_plot = sns.clustermap(table, method=method, metric=metric,
row_colors=row_colors,
col_cluster=col_cluster, row_cluster=row_cluster,
cmap=color_scheme,
xticklabels=True, yticklabels=True,
# linewidths=1,
cbar_kws={'label': cbar_label})
plt.setp(heatmap_plot.cax.yaxis.get_label(), rotation=270)
当我想旋转 cbar 标签文本时,它与刻度重叠,我不知道如何重新定位它。有谁知道如何解决这个问题?
【问题讨论】: