How do I get rid of grid lines on a surface plot?

36 views (last 30 days)
Frank
Frank on 13 Mar 2024
Commented: Voss on 13 Mar 2024
I used the surface function to generate the surface plot below. How do I get rid of the gris lines around the cells?

Answers (1)

Voss
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
Voss on 13 Mar 2024
You're welcome! Any questions, let me know. Otherwise, please "Accept" this answer. Thanks!

Sign in to comment.

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!