Title position below the x axis
Ältere Kommentare anzeigen
How can I change the position of a title from top of the figure to the below of x axis using code(automatically) on a subplot?
Akzeptierte Antwort
Weitere Antworten (1)
Here are two options that may work for you:
%alter vertical position of title
figure;hold on
subplot(2,1,1)
t=title('Title1')
xlabel('xlabel')
set(t,'position',get(t,'position')-[0 1.4 0])
%add title as part of the xlabel
subplot(2,1,2)
xlabel(['xlabel',newline,'\bf Title2'])
1 Kommentar
Mahdi Torabi
am 30 Jun. 2018
Kategorien
Mehr zu Title finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!