Hi all,
Is there a way to use exportgrapics and have the saved content in a specified physical dimensions?
Currently, I use exportgraphics, and save the figure content as a vector PDF. Then I use InkScape to actually adjust the PDF to a size (in mm) I need. Finally I save it as EPS and have it printed out.
How could I skip the need for InskScape and could save the image content from Matlab directly to a certain size EPS?
Thanks,
Tero

 採用された回答

Richard Quist
Richard Quist 2021 年 12 月 29 日
編集済み: Richard Quist 2021 年 12 月 29 日

0 投票

exportgraphics does not currently support generating output to match a specified dimension.
If you would find this feature valuable I suggest contacting tech support and request that it be added, and provide information about what capabilities/options this should support.
Another option is to use the print command, and specify the desired output size using the figure's Paper* properties (PaperPosition, PaperUnits, PaperSize)

その他の回答 (1 件)

C
C 2022 年 8 月 24 日
編集済み: C 2022 年 8 月 24 日

1 投票

Hi there
I have done this by setting the figure properties prior to calling exportgraphics, e.g.
plot(xDat, yDat)
figH = gcf;
set(figH, 'Units', 'centimeters',...
'OuterPosition', [0 0 10 8])
exportgraphics(figH,...
'output.pdf',...
'BackgroundColor', 'none',...
'ContentType','vector');
where you can change 10 and 8 for the image width and height, respectively.

カテゴリ

ヘルプ センター および File ExchangePrinting and Saving についてさらに検索

質問済み:

2021 年 12 月 21 日

編集済み:

C
C
2022 年 8 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by