Automatically Position Text Annotations on a plot.
32 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nathaniel
le 23 Jan 2013
Commenté : Arsalan Aftab Sayed
le 5 Fév 2021
I am plotting many different plots in a for loop.
Is there any way to automatically position my text in the top right corner of the plot in all of the plots?
text('location','northeast','string1')
The line above does not seem to work.
Any ideas?
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 23 Jan 2013
ylim=get(gca,'ylim');
xlim=get(gca,'xlim')
text(xlim(1),ylim(2),'yourtext')
2 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!