How to keep aspect ratio fixed, when rotating 3D objects in GUI?
Ältere Kommentare anzeigen
I know that you can fix the aspect ration by right clicking on the axes and choosing: Rotate Options > Fixed Aspect Ratio Axes. But I'd like my GUI to do this automatically without every time manually specifying that? Is there a way to problematically achieve this? (ex.: including a command in the opening function)
thanks
Akzeptierte Antwort
Weitere Antworten (4)
Teja Muppirala
am 20 Jun. 2012
Maybe this will do what you are trying to accomplish?
axis vis3d
1 Kommentar
hana
am 20 Jun. 2012
hana
am 19 Jun. 2012
1 Stimme
Sean de Wolski
am 19 Jun. 2012
0 Stimmen
2 Kommentare
Walter Roberson
am 19 Jun. 2012
Sean, you had "DaraAspectRatioMode" . How old did you say your kids were? ;-)
Sean de Wolski
am 19 Jun. 2012
The dogs are 9 and 12, but we adopted them late!
hana
am 19 Jun. 2012
0 Stimmen
1 Kommentar
Sean de Wolski
am 19 Jun. 2012
hmmm, so you have something like:
set(handles.axes1,'dataaspectratiomode','manual');
set(handles.axes1,'dataaspectratio',[1 1 1]);
and it still comes undone?
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!