Wrong figure size in student version of MATLAB

조회 수: 3 (최근 30일)
Ali
Ali 2016년 7월 11일
댓글: Ali 2016년 7월 11일
The following code generates a figure (US letter size) which is finally saved to pdf. Everything was in my desktop computer, but when I tried it in my laptop (student version), only almost 2/3 of the plot appears in the figure. Any help? Thank you.
figure('Units','centimeters','Position',[0 0 21.59 27.94],'paperunits','centimeters','PaperSize',[21.59 27.94],'PaperPosition',[1.5 1.5 21.59 27.94])
saveas(gcf,'1.pdf']);
  댓글 수: 2
Ilja Maljutenko
Ilja Maljutenko 2016년 7월 11일
Couldn't reproduce your problem. I filled your figure with contourf(peaks(100)) and result is in attachment. Used Matlab R2015a.
Ali
Ali 2016년 7월 11일
Thanks. I solved it finally. The problem is the size of the monitor. My laptop monitor's size is less than US letter size. Therefore, it cannot locate the plot correctly. So, I divided all positions by a factor of 2 so that it was resolved.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by