필터 지우기
필터 지우기

Finding annotation location dynamically?

조회 수: 2 (최근 30일)
820408
820408 2016년 4월 1일
댓글: 820408 2016년 4월 1일
I am creating plots similar to one below
A numeric is written next to each curve that shows an iteration. In my plot,I am adding these numbers using annotation(.) but I have to adjust their position manually? Is it possible that This can be done dynamically.

채택된 답변

Image Analyst
Image Analyst 2016년 4월 1일
For each curve, get x and y
labelX = x(end) + 0.1;
labelY = y(end);
text(labelX, labelY, string);
Make up string with sprintf() and put whatever you want in it.

추가 답변 (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