How can I extract a colormap from a dendrogram?
古いコメントを表示
Hi, I have created a dendrogram and am happy with the colors it has selected by default. I want to create other plots using the same colormap to facilitate comparison. How do I extract the colormap from the dendrogram I have created?
採用された回答
その他の回答 (1 件)
Rishik Ramena
2020 年 10 月 7 日
編集済み: Rishik Ramena
2020 年 10 月 7 日
0 投票
You could use the ColorThreshold argument to specify the number of colors to be used in the dendrogram. This would then limit the use of newer colors in the different plots you seek to compare. You can also set the colors of the lines individually using the handles returned by the dendrogram function. Check here for examples and implementation.
カテゴリ
ヘルプ センター および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!