how to control position of a displaied point value in plot

1 回表示 (過去 30 日間)
Abdulaziz
Abdulaziz 2014 年 7 月 12 日
コメント済み: Star Strider 2014 年 7 月 13 日
Hi all
When displaying a point value in a plot, the value always showed at the right side of the point. Is there any way to locate this value at the right side to avoid overlapping with the next curve. I have tried rotating it but the number will be upside down. I have tried these two methods
h1=text(x1(j(i),i),Dia(j(i),i),strcat(num2str(x1(j(i),i))));
*or* h1= text(x1(j(i),i),Dia(j(i),i), ['\leftarrow (', num2str(x1(j(i),i)), ';', num2str(Dia(j(i),i)), ')']);
*then* set(h1,'color','r','Rotation',5);
Thank you

採用された回答

Star Strider
Star Strider 2014 年 7 月 12 日
See the documentation for the HorizontalAlignment and VerticalAlignment properties in Text Properties
  4 件のコメント
Abdulaziz
Abdulaziz 2014 年 7 月 13 日
That works thank you Star
Star Strider
Star Strider 2014 年 7 月 13 日
My pleasure!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by