Copy figure losing transparancy
이전 댓글 표시
Hi, I have noticed that I seem to have lost the ability to use the "copy figure" to paste figures into powerpoint that have transparency (FaceAlpha<1) while retaining the transparency.
For example, if I use the following to produce overlaid,semi-transparent histograms of normal random variables:
rnd1=randn(1,1000);
rnd2=randn(1,1000);
hold on;
hist(rnd2)
hist(rnd1)
h = findobj(gca,'Type','patch');
set(h(1),'FaceColor','r','EdgeColor','k','FaceAlpha',.2);
set(h(2),'FaceColor','b','EdgeColor','k','FaceAlpha',.2);
I cannot then use the "Edit>Copy Figure" to paste into Powerpoint without losing the transparency. I could have sworn that I used to be able to do this.
Thanks in advance for any suggestions on how to retain the transparency when using the Copy Figure option.
답변 (1개)
Sean de Wolski
2014년 3월 11일
0 개 추천
More than likely the renderer is switching away from OpenGL to painters which does not support transparency.
You can go into the Copy Options and select bitmap, this will should do it.
댓글 수: 3
Matt
2014년 3월 11일
Sean de Wolski
2014년 3월 11일
You could also try setting the figure's RendererMode to manual so that it doesn't try to switch.
set(gcf,'RendererMode','manual')
I can't reproduce this though so it's still a guess!
Matt
2014년 3월 11일
카테고리
도움말 센터 및 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!