How to make the font sizes of Xlabel, Ylabel, and Title different in a heat map using MATLAB?
32 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hongyun
il 19 Lug 2024 alle 3:13
Commentato: Hongyun
il 19 Lug 2024 alle 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 Commenti
Risposta accettata
Walter Roberson
il 19 Lug 2024 alle 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;
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Distribution Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!