Create a diagonal text box in GUI (rotate axis)?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
James Boyle
am 16 Mai 2017
Beantwortet: Walter Roberson
am 16 Mai 2017
I'm trying to create a text box within my GUI (not using guide) that is at an upward 45 degree angle to the positive x-axis.
I've tried to create an axis within my GUI, add the text to the axis and then rotate the axis. Is this possible? I cannot seem to find a way to do it? Or is there some other method for doing this?
Thanks!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 16 Mai 2017
create a hggroup() and parent the axes within that. Then you can apply a hgtransform() to the axes.
However: if you only need a single text line changed, then you would probably be better off using a text() object and setting its Rotation property. Or use this method if your box only needs to contain text objects and no graphics objects; the box itself can be easily constructed using line()
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Object Containers finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!