X Y grids on 2D surface plot

조회 수: 3 (최근 30일)
Toufik
Toufik 2019년 12월 6일
댓글: Star Strider 2019년 12월 7일
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.
Star Strider
Star Strider 2019년 12월 7일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by