Increase figure size on the screen but save with specific dimension in centimeters
27 次查看(过去 30 天)
显示 更早的评论
Hi all,
I'm typically save figures in .eps format with specific size (let's say 8.6*cm x 5*cm, as typically for scientific formatting).
Although this dimension is perfect for me to be integrated in LaTeX, the dimension on the sceen is too small.
Should I just increase the dpi for the screen rendering?
This is what I use at the moment:
fig=figure('units','centimeters');
set(gca,'fontname','Latin Modern Math');
fig.Units = 'centimeters';
fig.Position(3) = 8.6;
fig.Position(4) = 4;
0 个评论
回答(1 个)
Jan
2022-12-6
Figures have the properties 'Position', which defines the size on the screen, and 'PaperPosition' and 'PaperSize', which determines the output for printing. You can set the size dynamically also during the printing.
2 个评论
Jan
2022-12-8
I keep my figure units in pixels, because this is handy on the screen.
For fhe paperunits I use cm and have no problems with exporting EPS or PDF graphics.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Printing and Saving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!