Tightly cropped PDF (programatically not intereacitvely)

36 visualizaciones (últimos 30 días)
Tasos
Tasos el 21 de Feb. de 2020
Respondida: Pujitha Narra el 24 de Feb. de 2020
I know it is possible to interactively save a figure as a PDF that is tighlty cropped around the axes content using the export button, as described here:
I would like to ask though, how can we achieve the exact same tight cropping programatically? I tried using the below code but it did not have the same effect:
set(gcf,'Units','inches');
screenposition = get(gcf,'Position');
set(gcf,...
'PaperPosition',[0 0 screenposition(3:4)],...
'PaperSize',[screenposition(3:4)]);

Respuestas (1)

Pujitha Narra
Pujitha Narra el 24 de Feb. de 2020
Hi Tasos,
This link would help you save a figure with tight cropping:

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by