how can i rotate a figure without using the figure window but using code

51 次查看(过去 30 天)
Hello everybody,
I have a .fig file with an object. Now I want to rotate and translate this object in the figure but I don't want to use the buttons from the figure window. I tried to write the code for this problem but I had no success until now. Do I have to use the "set" function ?

采纳的回答

jonas
jonas 2018-8-16
You can change the 'view' to rotate, for example
set(gca,'view',[90 90])
You can then work with the 'xlim' and 'ylim' to zoom or translate.

更多回答(1 个)

Stephen23
Stephen23 2018-8-16
编辑:Stephen23 2018-8-16
Use view, e.g.
view(180,90)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Identification 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by