Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to I "scale to fit" using print command?
Date: Tue, 9 Feb 2010 10:13:02 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 23
Message-ID: <hkrcfe$fg6$1@fred.mathworks.com>
References: <hkr874$g6e$1@fred.mathworks.com>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1265710382 15878 172.30.248.38 (9 Feb 2010 10:13:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 9 Feb 2010 10:13:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:605672

"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

what is the position/size of your AXES(?)...
it looks as if they're too small...

     ah=findall(gcf,'type','axes');
     pos=get(ah,'position');
     pos=cat(1,pos{:})

us