seaborn.clustermapのytickラベルの色を変更することはできますか?seaborn.clustermapのytickラベルの色を変更します
import seaborn as sns
iris = sns.load_dataset("iris")
species = iris.pop("species")
lut = dict(zip(species.unique(), "rbg"))
row_colors = species.map(lut)
g = sns.clustermap(iris)
そして、1-1プロット行との間の対応と行ラベルを取得することが可能である:
だからseaborn Iris exampleのために、種に基づいて行の色を設定し、clustermapをプロットすることが可能です。
g.ax_heatmap.yaxis.get_majorticklabels()
これを使用して、row_colorsに基づいてytickラベルを再描画する方法はありますか?