Seaborn 如何调整sns.clustermap中的cbar标签位置?

Seaborn 如何调整sns.clustermap中的cbar标签位置?,seaborn,heatmap,Seaborn,Heatmap,我正在绘制seaborn clustermap,在定位颜色条标签时遇到问题。这是我的代码: heatmap_plot = sns.clustermap(table, method=method, metric=metric, row_colors=row_colors, col_cluster=col_cluster, row_cluster=row_clus

我正在绘制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标签文本时,它与记号重叠,我不知道如何重新定位它。有人知道如何解决这个问题吗


您可以在主
sns.clustermap
调用中省略颜色条标签,然后执行以下操作

heatmap_plot.cax.set_title("my cbar label")

感谢您提供的解决方案。。。到目前为止,我手动设置坐标,结果也很好-
heatmap\u plot.cax.yaxis.set\u label\u coords(cbar.x0+cbar.width+2.7,hm.y0+height/2)
@Marija如何访问cbar?