フィルターのクリア

Tightly cropped PDF (programatically not intereacitvely)

14 ビュー (過去 30 日間)
Tasos
Tasos 2020 年 2 月 21 日
回答済み: Pujitha Narra 2020 年 2 月 24 日
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)]);

回答 (1 件)

Pujitha Narra
Pujitha Narra 2020 年 2 月 24 日
Hi Tasos,
This link would help you save a figure with tight cropping:

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by