필터 지우기
필터 지우기

Transparency of patches doesn't work right...

조회 수: 37 (최근 30일)
David Pesetsky
David Pesetsky 2016년 5월 29일
답변: David Pesetsky 2016년 5월 31일
Hello,
I have cobbled up a method to plot rectangles and scatter points in 3D space. I need to set the transparency of individual patches, but it seems to either be all transparent, or all opaque. And a value of 1 is not opaque? I think I built this wrong, perhaps. I attached the 2 m files here. I pass a transparency value into the function, but the patches don't have unique names...
Any help appreciated! Dave
  댓글 수: 1
David Pesetsky
David Pesetsky 2016년 5월 29일
Seems switching to the method below solved it:
h=patch(x(:,i),y(:,i),z(:,i),[.5 .5 .5], 'facealpha',0.3);

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

답변 (1개)

David Pesetsky
David Pesetsky 2016년 5월 31일
Seems switching to the method below solved it:
h=patch(x(:,i),y(:,i),z(:,i),[.5 .5 .5], 'facealpha',0.3);

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by