Title position below the x axis
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (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 comentario
Mahdi Torabi
el 30 de Jun. de 2018
Categorías
Más información sobre Title en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!