MATLAB Answers

Tightly cropped PDF (programatically not intereacitvely)

조회 수: 4(최근 30일)
Tasos 21 Feb 2020
답변: Pujitha Narra 24 Feb 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:
screenposition = get(gcf,'Position');
'PaperPosition',[0 0 screenposition(3:4)],...

  댓글 수: 0

댓글을 달려면 로그인하십시오.


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

  댓글 수: 0

댓글을 달려면 로그인하십시오.




Community Treasure Hunt

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

Start Hunting!

Translated by