Saving a figure bigger than screen size

21 次查看(过去 30 天)
I am trying to save a figure bigger than screen size, but it gets cut. How can I do it?
  1 个评论
Frederik Brasz
Frederik Brasz 2017-6-20
Found the answer in another thread.
Make the figure invisible before setting it's size with
set(fig, 'visible', 'off')

请先登录,再进行评论。

回答(2 个)

Robbin van Hoek
Robbin van Hoek 2015-5-12
编辑:Robbin van Hoek 2015-5-12
have you tried setting the outerposition bigger than the screensize?
full screen:
figure('units','normalized','outerposition',[0 0 1 1]);
twice sceensize:
figure('units','normalized','outerposition',[0 0 2 2]);

Alon Wengierko
Alon Wengierko 2015-5-12
编辑:Alon Wengierko 2015-5-12
I tried:
function printpdf(h,outfilename)
set(h, 'PaperUnits','centimeters');
set(h, 'Units','centimeters');
pos=get(h,'Position');
set(h, 'PaperSize', [pos(3) pos(4)]);
set(h, 'PaperPositionMode', 'manual');
set(h, 'PaperPosition',[0 0 pos(3) pos(4)]);
print('-dpdf',outfilename);
I have made an script, and sometimes it plot it with the desired size and sometimes it is cut.

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by