How to remove the grid from plot

15 visualizzazioni (ultimi 30 giorni)
Ole
Ole il 30 Lug 2020
Commentato: Ole il 30 Lug 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 Commenti
Ive J
Ive J il 30 Lug 2020
Have you tried this?
s.MeshStyle = 'none';
Ole
Ole il 30 Lug 2020
Thank you!
Works perfect

Accedi per commentare.

Risposta accettata

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

Più risposte (0)

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by