Figure printing size and printing in latex

조회 수: 8 (최근 30일)
Diana
Diana 2018년 1월 17일
댓글: Elias Gule 2018년 1월 17일
I have multiple of Matlab figures and I need all the figures to have the same size when I save them as Pdf but I can't make them equal, is there a way just to copy the sixe configuration from figure to another. Thanks in advance
  댓글 수: 4
Diana
Diana 2018년 1월 17일
I go to edit:Figure Prop. then More Prop. After PaperPosition and I set width and height to 650 and 500 (units-points)... but I'm not getting the same size
Jan
Jan 2018년 1월 17일
The same size of what? Remember that the readers do not have the faintest idea about what you are doing.

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

답변 (1개)

Jan
Jan 2018년 1월 17일
If you create a PDF, not the 'Position' of the figure matters, but the 'PaperPosition' and 'PaperUnits'.
If you have the handles of all figures in one vector, you can set the properties in one command:
fig(1) = figure;
fig(2) = figure;
...
set(fig, 'PaperUnits', 'cm', 'PaperSize', [10, 15]);
  댓글 수: 3
Diana
Diana 2018년 1월 17일
hi =get(gcf); >> set(hi, 'PaperUnits', 'cm', 'PaperSize', [10, 15]); Error using set Conversion to double from struct is not possible. I tried the bove and gave the above error
Elias Gule
Elias Gule 2018년 1월 17일
@Diana, please change
hi = get(gcf);
to
hi = gcf;

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

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by