transparency

2 visualizaciones (últimos 30 días)
Nicolas
Nicolas el 13 de Feb. de 2012
Editada: Paolo Conti el 10 de Oct. de 2013
Hi,
I'm drawing a black circle on top of a rose diagram. I'm trying to set that circle half transparent
circle=area(X,Y,'LineStyle','none','FaceColor',[0 0 0]); %black circle
set(circle,'alphadata',0.5);
However, there is no 'alphadata' property for the 'areaseries' class! Does anyone have an idea how to select make that particular circle transparent?
Cheers,

Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de Feb. de 2012
patchobjs = findobj(get(circle,children), '-property', 'AlphaData');
set(patchobjs, 'AlphaData', 0.5);
  5 comentarios
Walter Roberson
Walter Roberson el 14 de Feb. de 2012
Transparency requires OpenGL.
You might be able to get further with the File Exchange Contribution "export_fig", but even then you will probably not be able to go _directly_ to Illustrator.
Oliver Woodford
Oliver Woodford el 14 de Feb. de 2012
The only way I know of exporting translucent patches as vector graphics (export_fig can't) is to export to SVG using:
http://www.mathworks.com/matlabcentral/fileexchange/7401

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by