How to get rid of annoying extra white spaces on the margins when exporting surface plots to pdf?
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How to get rid of annoying extra white spaces on the margins when exporting surface plots to pdf, in spite of the use of exportgraphics already? I guess the extra white spaces are caused by the use of view([-25 50]), which changes the default viewpoint, but this line is required for my application.
Example code:
[X,Y,Z] = peaks;
surf(X, Y, Z);
view([-25 50]); %%% This line is necessary, but seems resulting in extra white spaces on the margins
exportgraphics(gcf, 'mypdf.pdf');
4 comentarios
Catalytic
el 12 de Feb. de 2022
Do you mean the extra blue at the fringe? I definitely don't see that.
Respuestas (1)
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!