Show the xticks in the view of 2D

7 次查看(过去 30 天)
Hi, I use surf to plot a 3D surface, see below
And I want to see it in 2D view, so I use view(2), and I get the figure below.
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!

采纳的回答

Star Strider
Star Strider 2021-10-6
The default tick direction is 'in', so the x-ticks are not visible in the second plot.
Set TickDir to 'out' or 'both' to see them.
.
  4 个评论
Ying Wu
Ying Wu 2021-10-6
That works! Thanks you soooo much!~

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by