Subplot titles on each column.
Mostrar comentarios más antiguos
I was making a subplot(2,2,i) (i is any value from 1 to 4). However, I could not find a method to lable each set of grphs.
Specifically to lable each column as a title. Here I would want them above the left hand side and one above the righ hand side.

Any ideas for in built functions?
3 comentarios
KALYAN ACHARJYA
el 2 de Abr. de 2020
No, that gives a subtitle for all four of them, sort of like a main title.
subplot(2,2,1)
plot(t, V, t, V_t)
xlabel('Time in seconds')
ylabel('Velocity in m/s')
title('Lunch equation comparison of velociteis')
legend('Equation provieded', "Tsiolkovsky's equation", 'location', 'best')
subplot(2,2,3)
plot(t, H, t, H_t)
xlabel('Time in seconds')
ylabel('Distance in meters')
title('Lunch equation comparison of hight')
legend('Equation provieded', "Tsiolkovsky's equation", 'location', 'best')
suptitle('Left hand side') % this to be on the left side
subplot(2,2,2)
plot(t, V2, t, V_t)
xlabel('Time in seconds')
ylabel('Velocity in m/s')
title('Lunch equation comparison of velociteis')
legend('Equation provieded', "Tsiolkovsky's equation", 'location', 'best')
subplot(2,2,4)
plot(t, H2, t, H_t)
xlabel('Time in seconds')
ylabel('Distance in meters')
title('Lunch equation comparison of hight')
legend('Equation provieded', "Tsiolkovsky's equation", 'location', 'best')
suptitle('Right hand side') % this to be on the right side
Essentialy making one "main" title instead of two seperate "main" titles for each collumn.
KALYAN ACHARJYA
el 2 de Abr. de 2020
Sorry, I missed the question. Are you looking for one main title over all same columns subplots?
Wojciech Kalinowski
el 2 de Abr. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Subplots 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!