- 'annotation'- https://www.mathworks.com/help/matlab/ref/annotation.html
- 'TextArrow'- https://www.mathworks.com/help/matlab/ref/matlab.graphics.shape.textarrow-properties.html
- 'TextBox'- https://www.mathworks.com/help/matlab/ref/matlab.graphics.shape.textbox-properties.html
How can I set the position of the text of a textarrow manually?
조회 수: 37 (최근 30일)
이전 댓글 표시
Hi all, I use annotation to plot arrows on my axes. But I want to show its text in a customized position.
annotation('textarrow',[x1 x2],[y1 y2],'String','Hello')
is there any property, which can set the position of 'Hello'?
댓글 수: 0
답변 (1개)
Raj
2023년 11월 17일
Hello Soroush,
I understand you want to customise the position of your arrow text present in your axes. For this you can use Name-Value argument and in that use either Text arrow or Text box object property, whichever serves your use case better.
Attaching below the links to the respective documentation page for your reference
To summarise, 'TextArrow' is suitable when you want to indicate a directional relationship between two points with an arrow and text, while 'TextBox' is useful when you want to enclose the text within a rectangular box and have more control over its positioning and appearance.
I hope this solves your query!
댓글 수: 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!