Copy figure losing transparancy
Ältere Kommentare anzeigen
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.
Antworten (1)
Sean de Wolski
am 11 Mär. 2014
0 Stimmen
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 Kommentare
Matt
am 11 Mär. 2014
Sean de Wolski
am 11 Mär. 2014
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
am 11 Mär. 2014
Kategorien
Mehr zu Lighting, Transparency, and Shading finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!