How to remove the grid from plot

47 views (last 30 days)
Ole
Ole on 30 Jul 2020
Commented: Ole on 30 Jul 2020
How to remove the grid from a pcolor plot ?
grid off does not work.
x = linspace(0,10);
[X,Y] = meshgrid(x,x);
z = X.*Y;
s = pcolor(x,x,z);
s.FaceColor = 'interp';
Thank you.
  2 Comments
Ive J
Ive J on 30 Jul 2020
Have you tried this?
s.MeshStyle = 'none';
Ole
Ole on 30 Jul 2020
Thank you!
Works perfect

Sign in to comment.

Accepted Answer

KSSV
KSSV on 30 Jul 2020
x = linspace(0,10);
[X,Y] = meshgrid(x,x);
z = X.*Y;
pcolor(x,x,z);
shading interp

More Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!