Is it possible to put xlabel text in two rows but with different font size?
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mr M.
am 28 Okt. 2015
Kommentiert: Praveen Choudhary
am 4 Okt. 2019
Is it possible to put xlabel text in two rows but with different font size?
0 Kommentare
Akzeptierte Antwort
Jan
am 28 Okt. 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 Kommentare
Weitere Antworten (1)
Stalin Samuel
am 28 Okt. 2015
1 Kommentar
Praveen Choudhary
am 4 Okt. 2019
newline = char(10);
ylabel(['xyz and',newline,'xyz '],'FontName','Times New Roman','FontSize',12)
Siehe auch
Kategorien
Mehr zu Axis Labels 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!