Automatically Position Text Annotations on a plot.

33 ビュー (過去 30 日間)
Nathaniel
Nathaniel 2013 年 1 月 23 日
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')
  2 件のコメント
Nathaniel
Nathaniel 2013 年 1 月 23 日
thanks for you input!
Arsalan Aftab Sayed
Arsalan Aftab Sayed 2021 年 2 月 5 日
can we avoid overlapping of text

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by