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,

 採用された回答

Walter Roberson
Walter Roberson 2012 年 2 月 13 日

1 投票

patchobjs = findobj(get(circle,children), '-property', 'AlphaData');
set(patchobjs, 'AlphaData', 0.5);

5 件のコメント

Nicolas
Nicolas 2012 年 2 月 13 日
great ! thank you
Nicolas
Nicolas 2012 年 2 月 14 日
patchobjs = findobj(get(circle,'Children'), '-property', 'FaceAlpha');
set(patchobjs, 'FaceAlpha', 0.5);
Nicolas
Nicolas 2012 年 2 月 14 日
Hi again,
I have an additional problem since I'm trying to save in Illustrator:
??? Error using ==> print at 364
Adobe Illustrator driver does not print in Z-Buffer or
OpengGL mode
Can I do something about that?
Walter Roberson
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
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 件)

カテゴリ

質問済み:

2012 年 2 月 13 日

編集済み:

2013 年 10 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by