How to remove the grid from plot

14 ビュー (過去 30 日間)
Ole
Ole 2020 年 7 月 30 日
コメント済み: Ole 2020 年 7 月 30 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by