Using the print command makes disappearing a surface from a figure
Show older comments
Hello,
I am using Matlab R2014b. I have a picture which is made by 3 items: 1) lines made with plot 2) cloud of points made by stem 3) surface made using surf
figure
plot(t,wg,'b')
hold on
stem3(D(:,1),D(:,2),zeros(N,1),'b.');
s1 = surf(XX,YY,PPDF2,'EdgeColor','none','LineStyle','none');
shading flat;alpha(s1,'color');
sub1=gca;
view(2)
saveas(gcf,[city'.fig'])
print('-dpng','-r600',[city,'.png'])
When I do the print command, the surface disappears. I googled and it seems to be related to the alpha .... I like the way the plot looks and I would like to export it at high res as png. I tried epsc and I get the same problem.
If you give me your email address, I will send you the fig image. Any suggestion is welcome :-)
Thanks a lot
Antonio
Accepted Answer
More Answers (1)
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!