anyway to place the text of annotation at its right side?
조회 수: 14 (최근 30일)
이전 댓글 표시
Hi:
is there anyway to place the text of annotation at its right side?
![Untitled.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/144862/Untitled.jpeg)
below is my code to generate the figure above:
for i=1:1:5
anno=annotation('textbox');
anno.Units='pixel';
anno.Position=anno_posi{i};
anno.BackgroundColor=anno_color{i};
anno.EdgeColor='w';
end
Thanks!
Yu
댓글 수: 0
답변 (1개)
Walter Roberson
2019년 1월 19일
annotation textbox have a HorizontalAlignment property that defaults to 'left' but can be set to 'right' or 'center'.
There is also a VerticalAlignment property.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!