How do I get rid of grid lines on a surface plot?
36 views (last 30 days)
Show older comments
I used the surface function to generate the surface plot below. How do I get rid of the gris lines around the cells?

0 Comments
Answers (1)
Voss
on 13 Mar 2024
Use 'EdgeColor','none' or 'LineStyle','none'
z = peaks(100);
figure
surface(z) % with grids
figure
surface(z,'EdgeColor','none')
view(2)
figure
surface(z,'LineStyle','none')
view(2)
2 Comments
Voss
on 13 Mar 2024
You're welcome! Any questions, let me know. Otherwise, please "Accept" this answer. Thanks!
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

