필터 지우기
필터 지우기

Saving a figure bigger than screen size

조회 수: 21 (최근 30일)
Alon Wengierko
Alon Wengierko 2015년 5월 12일
댓글: Frederik Brasz 2017년 6월 20일
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