Automatically Position Text Annotations on a plot.
31 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nathaniel
am 23 Jan. 2013
Kommentiert: Arsalan Aftab Sayed
am 5 Feb. 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 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 23 Jan. 2013
ylim=get(gca,'ylim');
xlim=get(gca,'xlim')
text(xlim(1),ylim(2),'yourtext')
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!