- Set the title's units to Normalize
- Move the title leftward
- Set the title's HorizontalAlignment to Left.
Subplot Titles left justified
21 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Yugarshi Mondal
le 21 Août 2020
Modifié(e) : Adam Danz
le 5 Jan 2021
I want to create some left justified subplot title as in this picture:

I know how to get subplot titles:
subplot(2,2,1);
title('A No Depression')
But moving the title all the way to the corner then adding some descriptors of a different font size are confusing me a bit. Any help? Thanks!
0 commentaires
Réponse acceptée
Adam Danz
le 21 Août 2020
Modifié(e) : Adam Danz
le 5 Jan 2021
Prior to Matlab r2020b
figure()
axes()
ttl = title('Input firing rates');
ttl.Units = 'Normalize';
ttl.Position(1) = 0; % use negative values (ie, -0.1) to move further left
ttl.HorizontalAlignment = 'left';
Matlab r2020b or later
figure()
ax = axes();
title('Input firing rates');
ax.TitleHorizontalAlignment = 'left';
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Subplots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
