Without a mcve of the issue it's hard to know where the labels come from (I don't know how the dataframe needs to look like such that labels are produced, because by default there should not be any labels.) However, the labels can be set - and therefore also set to an empty string - using the known methods .set_xlabel
and .set_ylabel
of the heatmap axes of the cluster grid.
So if g
is a ClusterGrid
instance,
g = sns.clustermap(...)
you can get the heatmap axes via
ax = g.ax_heatmap
and then use any method you like to manipulate this matplotlib axes.
ax.set_xlabel("My Label")
ax.set_ylabel("")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…