How to return the graph axis from 3d axis to 2d axis after I click on the clear button (In GUI)?
4 次查看(过去 30 天)
显示 更早的评论
so , I have a function that convert a 2D shape to 3D shape ,however, I want when the user click on the clear button the graph returens to the original axis (2d) and not remains on the 3D shape
The second pictures is after I click on the clear button, whereas the third pictures is what I want the axis to look like after I click on the button.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/821690/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/821695/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/821700/image.png)
0 个评论
采纳的回答
Voss
2021-12-2
One way is:
set(gca(),'View',[0 90]);
This assumes that your axes is the current axes in the current figure. If this is not the case, replace gca() wth the handle to your axes.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!