X Y grids on 2D surface plot

2 次查看(过去 30 天)
I'm facing problem in making visible the grids for the x and y axis.
Her is a simple exemple:
[X,Y,Z] = peaks(25);
surf(X,Y,Z)
shading interp;
grid on
view(2)
Please, any help?

采纳的回答

Star Strider
Star Strider 2019-12-6
If you want to see the grid lines, do not use shading interp
Just do:
[X,Y,Z] = peaks(25);
figure
surf(X, Y, Z)
grid on
view(2)
and the grid lines will be visible,.
  4 个评论
Toufik
Toufik 2019-12-7
Thank you very much, it works like that.

请先登录,再进行评论。

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by