Problem with dimensions setting of textbox (annotations)

조회 수: 3 (최근 30일)
Gopanraj Patel
Gopanraj Patel 2017년 9월 19일
답변: Rahul punk 2019년 4월 3일
I want to write X-Axis's values of some points in textbox. For that I made this attached code. But it is not placing the textbox at desire place. I am confused how to give dimension to textbox. In the fig, first peak's textbox is placed before 1st peak. Whereas, 2nd peak's textbox placed after 2nd peak. How dimension of textbox works?

답변 (2개)

Walter Roberson
Walter Roberson 2017년 9월 19일
Consider using text() instead of annotation(). text() allows you to specify horizontal and vertical alignment
  댓글 수: 2
Gopanraj Patel
Gopanraj Patel 2017년 9월 19일
I tried it but text() was not allowing me to create textbox. How will I create a textbox using text()? I need textbox to display it same as datatip.

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


Rahul punk
Rahul punk 2019년 4월 3일

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by