Set properties of patch doesn't work

조회 수: 2 (최근 30일)
rocketMan
rocketMan 2020년 12월 20일
댓글: Walter Roberson 2020년 12월 22일
Hello,
I'm trying to plot an isosurface in AppDesigner with:
load chestVolume
mask = 1800 <= V & V <= 3200;
p = patch(isosurface(mask));
p.FaceColor = 'red';
and it works fine.
Now I want to set the BackFaceLightning on 'unlit' and FaceLightning (on something, I don't know) so I can see where the inner surface and where he outer surface of the figure is. But when I set the properties nothing changes. Does anybody know why nothing changes and how I can fix it?
  댓글 수: 8
Jan
Jan 2020년 12월 21일
Okay, so the is a change. But the displayed object does not change, because there is no light() object, which could influence the lighting?
rocketMan
rocketMan 2020년 12월 22일
Yes, I suppose so

댓글을 달려면 로그인하십시오.

답변 (1개)

Mario Malic
Mario Malic 2020년 12월 21일
편집: Mario Malic 2020년 12월 21일
After you change properties, try with drawnow.
Wrong(FaceColor, FaceAlpha, EdgeColor, LineStyle are the only properties for patch.)
  댓글 수: 8
rocketMan
rocketMan 2020년 12월 22일
It is the ImageProcessing Toolbox that I use

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by