X Y grids on 2D surface plot
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Toufik
am 6 Dez. 2019
Kommentiert: Star Strider
am 7 Dez. 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?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 6 Dez. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!