How to make the font sizes of Xlabel, Ylabel, and Title different in a heat map using MATLAB?
32 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hongyun
el 19 de Jul. de 2024 a las 3:13
Comentada: Hongyun
el 19 de Jul. de 2024 a las 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 comentarios
Respuesta aceptada
Walter Roberson
el 19 de Jul. de 2024 a las 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;
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Distribution Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!