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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

KSSV
KSSV am 30 Jul. 2020

2 Stimmen

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

Weitere Antworten (0)

Produkte

Tags

Gefragt:

Ole
am 30 Jul. 2020

Kommentiert:

Ole
am 30 Jul. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by