Automatically Position Text Annotations on a plot.

조회 수: 32 (최근 30일)
Nathaniel
Nathaniel 2013년 1월 23일
댓글: Arsalan Aftab Sayed 2021년 2월 5일
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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by