How to define paper orientation in export_fig for pdfs

조회 수: 9 (최근 30일)
Aleg
Aleg 2012년 11월 13일
I try to create a pdf file with a figure and it always creates file with landscape orientation. No matter what parameters I put in place. Code example:
figure('PaperSize',[20.98404194812 29.67743169791]); plot(AvgIndustryLP(1:end,1),'-g'); set(gcf, 'Color', 'w'); export_fig ('PaperOrientation','portrait','test.pdf')
Does any one know how to define paper orientation for pdfs in export_fig?
Thanks
  댓글 수: 2
Jan
Jan 2012년 11월 13일
Please ask the author.
Oliver Woodford
Oliver Woodford 2012년 11월 23일
Please don't ask the author.

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

답변 (1개)

Oliver Woodford
Oliver Woodford 2012년 11월 23일
The export_fig submission description, help text and the web page all clearly state that the figure is saved as it appears on screen. Therefore if you want to save a figure in landscape, make it landscape on screen. E.g.
figure('Position', [100 100 500 300]);
plot(rand(3));
export_fig test.pdf
The PaperSize property you set is ignored by export_fig, and export_fig has no PaperOrientation option.

카테고리

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