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 件のコメント

Ive J
Ive J 2020 年 7 月 30 日
Have you tried this?
s.MeshStyle = 'none';
Ole
Ole 2020 年 7 月 30 日
Thank you!
Works perfect

サインインしてコメントする。

 採用された回答

KSSV
KSSV 2020 年 7 月 30 日

2 投票

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

1 件のコメント

Ole
Ole 2020 年 7 月 30 日
Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

タグ

質問済み:

Ole
2020 年 7 月 30 日

コメント済み:

Ole
2020 年 7 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by