|
"Pekka Kumpulainen" <pekka.nospam.kumpulainen@tut.please.fi> wrote in message <hkrc7v$15j$1@fred.mathworks.com>...
> "Paul " <paul_tutzu@yahoo.com> wrote in message <hkr874$g6e$1@fred.mathworks.com>...
> > Hi,
> >
> > I have a Figure (hf = figure;) with some plots. I want to print it automatically in a pdf file. I manage to do it, but the image is to small (somewhere in the middle a small color spot :) ). I want to scale it, to make as big as possible to fit in an A4-landscape.
> >
> > I use the following command:
> >
> > set(gcf, 'PaperType', 'A4', 'PaperOrientation', 'landscape', 'PaperPositionMode', 'auto');
> > print(hf, '-dpdf', 'test1.pdf');
> >
> > What do I have to do to resize / scale / make it bigger to fit into my A4 landscape size?
> >
> > Thanks,
> > Paul
>
> From documentation:
> PaperPositionMode auto prints the figure the same size as it appears on the computer screen, centered on the page.
> Use manual PaperPositionMode ans set the PaperUnits and Paperposition to what you prefer. For example:
> set(gcf,'PaperPositionMode', 'manual', ...
> 'PaperUnits','centimeters', ...
> 'Paperposition',[1 1 28.7 20])
Hi Pekka,
Thank you. It works.
Regards,
Paul
|