필터 지우기
필터 지우기

print a figure into PDF

조회 수: 47 (최근 30일)
Haozi
Haozi 2011년 8월 1일
Hi,
I want to print a matlab .fig into .pdf, but only the center part of the figure is shown on the .pdf file. Do you know how to solve this?
Thanks!
  댓글 수: 2
Jan
Jan 2011년 8월 2일
Please explain, which method you are using for printing: PRINT, the print-menu, saveas or a PDF printer driver?
Haozi
Haozi 2011년 9월 13일
I used the print menu, then select PDF from the list. Thanks!

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2011년 9월 14일
I guess, that you have a fixed PaperPosition, which is outside the visible range. Try this:
figure('PaperPositionMode', 'auto');
plot(rand(10));
print(gcf, '-dpdf', 'test.pdf');
You can set the PaperPosition in the Print-GUI also.
  댓글 수: 1
Haozi
Haozi 2011년 9월 14일
Thanks, I'll try.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Sreeram Mohan
Sreeram Mohan 2011년 9월 14일
Have u tried out the file submission here ?
Seems like there is a programmatic way of achieving this
Thanks, Sreeram

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by