How to remove top dendogram from clustergram plot
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Expression Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!