Why text is not centered?

조회 수: 16 (최근 30일)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2019년 9월 6일
답변: Walter Roberson 2019년 9월 6일
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에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by