Blank white lines in eps exported surf plots.
Mostrar comentarios más antiguos
I exported a surf plot in eps format using the below code.
s = figure(10);
surfc(double(smooth_img));
saveas(figure(10), 'surf.eps','epsc2');

I'm not able to remove the blank white lines in the image (i.e. at y = 250 and x = 100). Does anybody have any solution?
Respuestas (1)
Chad Greene
el 13 de Ag. de 2014
Whenever weird things happen in figures, my first line of defense is trying different renderers. Try all three:
set(gcf,'renderer','painters')
saveas(figure(10), 'surf.eps','epsc2');
Did that work? If no, try this:
set(gcf,'renderer','opengl')
saveas(figure(10), 'surf.eps','epsc2');
Still didn't work? Try this:
set(gcf,'renderer','zbuffer')
saveas(figure(10), 'surf.eps','epsc2');
Also, I have never seen saveas outperform export_fig. Getting ghostscript working with export_fig is a ~5 minute headache that will result in years of nicer graphics.
1 comentario
Chad Greene
el 16 de Ag. de 2014
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!