orientation of static text
이전 댓글 표시
I want to change the allignment of the text in a static text on a gui that I want to create with guide. Is it possible to make the text appear vertically? How?
답변 (3개)
Youssef Khmou
2014년 5월 27일
I think this solution will work
plot(randn(100,1));
h=text(1,1,' My description');
set(h,'Rotation',60);
The text is rotated by pi/3.
Jan
2013년 3월 5일
2 개 추천
The FileExchange submission uibutton allows to put a rotated text into a button. It is easy to modify either the code or the created button to a uicontrol of the style 'text'.
댓글 수: 1
the cyclist
2013년 3월 5일
Nice! I did a keyword search of the FEX, but somehow did not find this.
the cyclist
2013년 3월 5일
편집: John Kelly
2014년 5월 27일
0 개 추천
It is not possible to do this directly. It offers a work-around, in which you put an axes object in your GUI, then use the text command (which does have a 'Rotation' property) to rotate your text.
That support solution is kinda old, but I did not see any other solution when I searched, and there is not a 'Rotation' property for the Static Text object in GUIDE, which is how I would expect it to be implemented if the feature existed.
카테고리
도움말 센터 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!