Automatically Position Text Annotations on a plot.

33 次查看(过去 30 天)
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?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-1-23
ylim=get(gca,'ylim');
xlim=get(gca,'xlim')
text(xlim(1),ylim(2),'yourtext')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by