Title position below the x axis
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (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 Commento
Mahdi Torabi
il 30 Giu 2018
Categorie
Scopri di più su Title in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!