How can I apply variable transparency to a plot using scatter3?
Mostrar comentarios más antiguos
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 comentarios
Steffen Adria
el 14 de Jul. de 2011
raym
el 4 de Jun. de 2017
Great! I also have same problem
Respuesta aceptada
Más respuestas (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 comentarios
Jacek Wodecki
el 17 de Ag. de 2022
it doesn't work, matlab 2021b
s yuan
el 6 de Oct. de 2023
It does work, matlab 2023b
bym
el 4 de Jul. de 2011
I am not sure I understand the question, perhaps
slice()
would be useful?
2 comentarios
Steffen Adria
el 4 de Jul. de 2011
KRUNAL
el 21 de Ag. de 2014
Were you able to find a solution to the above question Steffen. If so, can you please post your code here
Categorías
Más información sobre Polygons en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!