print quality in batch mode

Hi,
I have a script that creates multiple figures, which I save as png files using
print(gcf,'figurename.png','-dpng','-r300');
This works fine when I run it interactively. However, if I send the script to batch the images come out in horrible resolution. I tried to increase the size by setting the position to something larger
set(gcf,'position',[1 1 1600 1200])
but the image remains the same. I also tried changing the renderer, but that made no difference either.
Is there anything I can do to get high resolution images in batch mode?
I am using Matlab 2012a on Windows 7, but had this problem on previous versions, and also when running on a Linux based system.

댓글 수: 1

Jan
Jan 2012년 9월 13일
But what should be the difference between running in "batch" and interactively? Do you have differen PaperPositions, PaperUnits or PaperSizes? This affects -dBMP256, but as far as I remember not -dBMP...

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Big Data Processing에 대해 자세히 알아보기

질문:

2012년 9월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by