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!