フィルターのクリア

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.
  1 件のコメント
820408
820408 2016 年 4 月 1 日
Thanks.

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

その他の回答 (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