Using the print command makes disappearing a surface from a figure
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 8 de Sept. de 2015
print('-opengl', '-dpng','-r600',[city,'.png'])
1 comentario
mortain
el 14 de Sept. de 2015
Categorías
Más información sobre Lighting, Transparency, and Shading en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
