Title position below the x axis
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (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 commentaire
Mahdi Torabi
le 30 Juin 2018
Catégories
En savoir plus sur Title dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!