フィルターのクリア

How to make the font sizes of Xlabel, Ylabel, and Title different in a heat map using MATLAB?

32 ビュー (過去 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?

採用された回答

Walter Roberson
Walter Roberson 2024 年 7 月 19 日 4:04
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;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by