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 comentario

Jan
Jan el 13 de Sept. de 2012
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...

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Preguntada:

el 13 de Sept. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by