Borrar filtros
Borrar filtros

Transparency of patches doesn't work right...

30 visualizaciones (últimos 30 días)
David Pesetsky
David Pesetsky el 29 de Mayo de 2016
Respondida: David Pesetsky el 31 de Mayo de 2016
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 comentario
David Pesetsky
David Pesetsky el 29 de Mayo de 2016
Seems switching to the method below solved it:
h=patch(x(:,i),y(:,i),z(:,i),[.5 .5 .5], 'facealpha',0.3);

Iniciar sesión para comentar.

Respuestas (1)

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by