How can I apply variable transparency to a plot using scatter3?
이전 댓글 표시
I'm producing a 3D model, and interior points happen to be more interesting to me. I have a 4-column matrix representing (x,y,z,intensity), and I'm most interested in the high-intensity points; currently they're coloured by intensity. Can I make it so that the transparency of low-intensity points is increased (but I need them to still be visible)?
Thanks
채택된 답변
추가 답변 (2개)
You can use
h = scatter3(..)
alpha = 0.5;
set(h, 'MarkerEdgeAlpha', alpha, 'MarkerFaceAlpha', alpha)
in order to set the transparancy for the edge as well as the face of the marker.
댓글 수: 2
Jacek Wodecki
2022년 8월 17일
it doesn't work, matlab 2021b
s yuan
2023년 10월 6일
It does work, matlab 2023b
bym
2011년 7월 4일
I am not sure I understand the question, perhaps
slice()
would be useful?
댓글 수: 2
Steffen Adria
2011년 7월 4일
KRUNAL
2014년 8월 21일
Were you able to find a solution to the above question Steffen. If so, can you please post your code here
카테고리
도움말 센터 및 File Exchange에서 Polygons에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!