How to make the font sizes of Xlabel, Ylabel, and Title different in a heat map using MATLAB?
32 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hongyun
am 19 Jul. 2024 um 3:13
Kommentiert: Hongyun
am 19 Jul. 2024 um 5:01
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 19 Jul. 2024 um 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;
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!