필터 지우기
필터 지우기

transparency

조회 수: 3 (최근 30일)
Nicolas
Nicolas 2012년 2월 13일
편집: Paolo Conti 2013년 10월 10일
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일
patchobjs = findobj(get(circle,children), '-property', 'AlphaData');
set(patchobjs, 'AlphaData', 0.5);
  댓글 수: 5
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개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by