Why text is not centered?

48 次查看(过去 30 天)
Zeynab Mousavikhamene
text(x,y','FontSize',12,'HorizontalAlignment', 'center') but the inf is not in the center (look at picture)
Capture.JPG
  2 个评论
Rik
Rik 2019-9-6
Try to make a MWE so we can run your code without any other dependencies and can reproduce your issue.
dpb
dpb 2019-9-6
We can't reproduce -- don't have x, y and there's no text argument so the above wouldn't even execute w/o error.
>> axes
>> xlim([0 10]),ylim([0 10])
>> x=5;y=5;
>> text(x,y','FontSize',12,'HorizontalAlignment', 'center')
Error using text
Invalid parameter/value pair arguments
>>

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2019-9-6

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by