Rotate Label on App Designer

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 comentarios

Adam Danz
Adam Danz el 23 de Mayo de 2019
Editada: Adam Danz el 23 de Mayo de 2019
It looks like label objects do not have a rotation property
Also, the rotate() function only acceps axis children which is not satisfied by app designer components.
Jenny Read
Jenny Read el 20 de Dic. de 2019
Having vertical text labels is really quite basic functionality - surely these needs to be added as a matter of urgency?
Cathie Kessler
Cathie Kessler el 14 de En. de 2021
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.

Iniciar sesión para comentar.

Respuestas (2)

Kanishk Singhal
Kanishk Singhal el 6 de Jul. de 2023

0 votos

There is a FEX submission which can be help.
You can change the button to simple text, by changing property in uicontrol.
Hardik
Hardik el 5 de Mzo. de 2024

0 votos

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';

Categorías

Más información sobre Labels and Annotations en Centro de ayuda y File Exchange.

Productos

Versión

R2019a

Preguntada:

el 23 de Mayo de 2019

Respondida:

el 5 de Mzo. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by