Show the xticks in the view of 2D
조회 수: 11 (최근 30일)
이전 댓글 표시
Hi, I use surf to plot a 3D surface, see below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/759206/image.jpeg)
And I want to see it in 2D view, so I use view(2), and I get the figure below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/759211/image.jpeg)
But for this 2D contour, xticks disappear (only 5, 10, ... show but no tick marks).
I guess it is due to some settings in 3D surface. Could anyone help me to solve this problem to make it like a general 2D figure? Thanks!
댓글 수: 0
채택된 답변
Star Strider
2021년 10월 6일
The default tick direction is 'in', so the x-ticks are not visible in the second plot.
.
댓글 수: 4
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!