How to remove the grid from plot

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 comentarios

Ive J
Ive J el 30 de Jul. de 2020
Have you tried this?
s.MeshStyle = 'none';
Ole
Ole el 30 de Jul. de 2020
Thank you!
Works perfect

Iniciar sesión para comentar.

 Respuesta aceptada

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

Más respuestas (0)

Categorías

Productos

Etiquetas

Preguntada:

Ole
el 30 de Jul. de 2020

Comentada:

Ole
el 30 de Jul. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by