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 Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by