How to add and arrange a text in a plot using commands?
조회 수: 3 (최근 30일)
이전 댓글 표시
How to add and arrange a text box in the plot by using commands in matlab?
댓글 수: 0
채택된 답변
Mike Garrity
2014년 9월 29일
It's hiding in the annotation command.
h = annotation('textbox')
After you've created it, you can use the set command to change things.
set(h,'String','Something or other')
set(h,'Position',[.3 .8 .4 .1])
set(h,'HorizontalAlignment','center')
You can also pass those sets into the annotation command:
annotation('textbox','String','another one','FontSize',24)
추가 답변 (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!