Subplot titles on each column.
30 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Wojciech Kalinowski
le 2 Avr 2020
Commenté : Wojciech Kalinowski
le 2 Avr 2020
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 commentaires
KALYAN ACHARJYA
le 2 Avr 2020
Sorry, I missed the question. Are you looking for one main title over all same columns subplots?
Réponse acceptée
darova
le 2 Avr 2020
What about brute force?
clc,clear
clf
subplot 121
plot(0,0)
subplot 122
plot(1,1)
h1 = annotation('textbox',[0.25 0.95 0.2 0.05],...
'string','PLOT1');
h2 = annotation('textbox',[0.65 0.95 0.2 0.05],...
'string','PLOT2');
set([h1 h2], 'fitboxtotext','on',...
'edgecolor','none')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Annotations 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!