How do i put a title for my entire subplot?
27 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Leelai
el 8 de Dic. de 2014
Comentada: Image Analyst
el 19 de Feb. de 2021
i have a 3x3 subplot with the first component looking like this:
subplot(3,3,1),plot(AnkleAng_X(:,1:5))
title('Transverse Plane')
ylabel('Ankle Angle(°)')
I want to put a title at the top of the subplot. My code will create 4, 3x3 subplots so i need titles to differentiate each of them.
0 comentarios
Respuesta aceptada
Image Analyst
el 8 de Dic. de 2014
You can use text() or use suplabel: http://www.mathworks.com/matlabcentral/fileexchange/7772-suplabel
3 comentarios
Image Analyst
el 19 de Feb. de 2021
But that was the 7 year old answer. Now the preferred way is to use sgtitle() like Cris mentioned below, instead of suptitle().
Más respuestas (1)
Cris LaPierre
el 25 de Oct. de 2018
There is now (in r2018b) a function in base MATLAB for placing a title over a grid of subplots. It is called sgtitle.
0 comentarios
Ver también
Categorías
Más información sobre Title en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!