How to change the color and the fontsize in the subplots of correlation matrix by corrplot function?
4 次查看(过去 30 天)
显示 更早的评论
Dear friends,
Please help me how to change the fontsize and color of subplots in the correlation matrix which is plotted by corrplot function?
I need a guidance in hurry!
Thanks advance!
0 个评论
采纳的回答
Voss
2023-1-10
% use the third output (lines and histogram objects) from corrplot:
[~,~,h] = corrplot(randn(4,4))
% get the parent axes of each line/histogram in h:
ax = get(h,'Parent');
% reshape to the same size as h:
ax = reshape([ax{:}],size(h))
% set some axes properties:
set(ax(3,1),'Color','g')
set(ax(2,4),'Color','y')
set(ax(4,2),'FontSize',12)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


