필터 지우기
필터 지우기

True Justification (start and end in the static text margins)

조회 수: 2 (최근 30일)
Alfonso
Alfonso 2013년 5월 10일
Hello,
I have a static text I have to show in one gui, and i need it to have a true justification, i mean the text must start and end in the static text margins in left and in right, but i cant find any Uicontrol Properties :
that helps me and :
didn't help too.
Anyone has tried this?.
Thank you in advance.
Alfonso.

답변 (2개)

Alfonso
Alfonso 2013년 5월 14일

Walter Roberson
Walter Roberson 2013년 5월 14일
There is no uicontrol() property for that. I do not know if it could be done by accessing the underlying Java.
That kind of justification is only done for proportionally spaced fonts, and is achieved by adding extra spacing in between words. MATLAB does not provide any tools for placement of characters at specific pixel boundaries within labels of uicontrol.
The closest to that would be to switch your axes so that its units was Pixels, adjust the axis Position and xlim and ylim so that one data unit corresponds to one pixel, and then to text() every single character into place individually (_not_ using uicontrol.)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by