transparency
2 次查看(过去 30 天)
显示 更早的评论
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,
0 个评论
采纳的回答
Walter Roberson
2012-2-13
patchobjs = findobj(get(circle,children), '-property', 'AlphaData');
set(patchobjs, 'AlphaData', 0.5);
5 个评论
Walter Roberson
2012-2-14
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
2012-2-14
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!