X Y grids on 2D surface plot

3 visualizzazioni (ultimi 30 giorni)
Toufik
Toufik il 6 Dic 2019
Commentato: Star Strider il 7 Dic 2019
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?

Risposta accettata

Star Strider
Star Strider il 6 Dic 2019
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 Commenti
Toufik
Toufik il 7 Dic 2019
Thank you very much, it works like that.
Star Strider
Star Strider il 7 Dic 2019
As always, my pleasure!

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by