How to make the font sizes of Xlabel, Ylabel, and Title different in a heat map using MATLAB?
    11 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I have used the heatmap function in MATLAB to draw a figure. However, the font sizes of Xlabel, Ylabel, and Ttile are same. How to make the font sizes of Xlabel, Ylabel, and Title different in a heat map?

2 件のコメント
採用された回答
  Walter Roberson
      
      
 2024 年 7 月 19 日
        h = heatmap(......);
warnstate = warning(MATLAB:structOnObject', 'off');
sh = struct(h);
warning(warnstate);
sh.Axes.XLabel.FontSize = as appropriate;
sh.Axes.YLabel.FontSize = as appropriate;
sh.Axes.Title.FontSize = as appropriate;
その他の回答 (1 件)
  aasim Azooz
 2024 年 7 月 26 日
        you can do it in two ways
1- from the edit this object properties in the figure tool bar. you click on tthe xlabel or ylabel and change the font size 
2- you can do it from within the code using 
xlabel ( 'Text .... ','fontsize',14)
ylabel('Test ....',fontsize',16)
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Data Distribution Plots についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




