Rotate Label on App Designer

조회 수: 60 (최근 30일)
Sarah Farthing
Sarah Farthing 2019년 5월 23일
답변: Hardik 2024년 3월 5일
Hi,
I've added a label component to my app in App Designer and want to rotate the textbox 90° so the text can be read vertically. I've tried using different methods to rotate text in other cases, e.g.:
set(app.Label,'Rotation',90)
app.Label.Rotate = 90
But keep receiving the error
There is no Rotation property on the Label class
Does anyone have any suggestions?
  댓글 수: 3
Jenny Read
Jenny Read 2019년 12월 20일
Having vertical text labels is really quite basic functionality - surely these needs to be added as a matter of urgency?
Cathie Kessler
Cathie Kessler 2021년 1월 14일
Total hack, and not applicable, if you want to change the text or any other properties: make an image of your rotated text, and insert as an image.

댓글을 달려면 로그인하십시오.

답변 (2개)

Kanishk Singhal
Kanishk Singhal 2023년 7월 6일
There is a FEX submission which can be help.
You can change the button to simple text, by changing property in uicontrol.

Hardik
Hardik 2024년 3월 5일
there is no any rotation proprty but you can split text and put it into label so it will look like vertical.
lbl=uilabel(app.GridLayout);
lbl.Layout.Row=9;
lbl.Layout.Column=2;
text="Vertical comment";
newstring=split(text,'');
lbl.Text=newstring;
lbl.HorizontalAlignment='center';

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by