Azzera filtri
Azzera filtri

How to return the graph axis from 3d axis to 2d axis after I click on the clear button (In GUI)?

7 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Voss
Voss il 2 Dic 2021
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.

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by