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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Change Markers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by