Is it possible to put xlabel text in two rows but with different font size?
24 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Is it possible to put xlabel text in two rows but with different font size?
0 commentaires
Réponse acceptée
Jan
le 28 Oct 2015
The documentation of xlabel explains with an example, how a multi-line output works. Did you read it? Then the only problem is the font size, which is explained there also:
plot((1:10).^2)
xlabel({'\fontsize{15}Population','\fontsize{20}(in thousands)'})
0 commentaires
Plus de réponses (1)
Stalin Samuel
le 28 Oct 2015
1 commentaire
Praveen Choudhary
le 4 Oct 2019
newline = char(10);
ylabel(['xyz and',newline,'xyz '],'FontName','Times New Roman','FontSize',12)
Voir également
Catégories
En savoir plus sur Axis Labels dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!