フィルターのクリア

How to remove top dendogram from clustergram plot

5 ビュー (過去 30 日間)
Opt User
Opt User 2017 年 6 月 29 日
回答済み: Adam Danz 2020 年 11 月 3 日
Basically I want to cluster both along the rows and columns with clustergram(), but I cannot find a way to hide the top dendodogram in the final plot.

回答 (1 件)

Adam Danz
Adam Danz 2020 年 11 月 3 日
"I cannot find a way to hide the top dendodogram in the final plot."
% create clustergram
rng('default')
cg = clustergram(rand(10,10));
% Get figure handle
cgfig = findall(0,'type','figure', 'Tag', 'Clustergram');
% Get dendrogram axes
dendroAxRow = findall(cgfig,'Tag','DendroRowAxes');
dendroAxCol = findall(cgfig,'Tag','DendroColAxes');
% Set their visibility to off
set(dendroAxRow.Children, 'Visible', 'off')
set(dendroAxCol.Children, 'Visible', 'off')
% Alternatively, delete them:
% delete(dendroAxRow)
% delete(dendroAxCol)
Before and after:

カテゴリ

Help Center および File ExchangeExpression Analysis についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by