MATLAB Answers

Problem with dimensions setting of textbox (annotations)

8 ビュー (過去 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?

  0 件のコメント

Sign in to comment.

回答 (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.

Sign in to comment.



Translated by