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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by