Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: figure size in pixels?
Date: Sat, 19 Apr 2008 15:30:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <fud35s$d6f$1@fred.mathworks.com>
References: <fucvp1$4rl$1@fred.mathworks.com> <fud0ot$223$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1208619005 13519 172.30.248.35 (19 Apr 2008 15:30:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 19 Apr 2008 15:30:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:464032



figure('units','pixels','Position',[100 100 800 450]);
%[left bottom width height]

%subplot position is relative to the figure and hence
doesn't change anything about the previous command, correct?
LeftPlot = subplot('Position', [0 .1 .5 .8]); %[left bottom
width height]

set(gcf,'PaperPositionMode','auto');
print('-djpeg', filename);

the files produced are now 1249x704!! what the heck??

Thanks,

Dave