I have a 3D plot that I sometimes want to view in 2D. "view([0 90])" works as expected, but a following "axis" command will reset the view direction to the default. If I change the command order it works (a fine workaround). I can follow either "view([1 90])" or "view([-1 90])" with an "axis" command, and it works as expected. What is happening?
[X,Y,Z] = peaks(25);figuresurf(X,Y,Z);view([0 90])axis([-3 3 -3 3 -10 10]);[az el] = view
gives az = -37.5, el=30
Best Answer