Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Problem constraining dimensions in figure saved as eps
Date: Wed, 22 Aug 2007 20:59:14 +0000 (UTC)
Organization: Boston University
Lines: 32
Message-ID: <fai832$4jm$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187816354 4726 172.30.248.37 (22 Aug 2007 20:59:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 22 Aug 2007 20:59:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 844160
Xref: news.mathworks.com comp.soft-sys.matlab:425048



Yet another saving, plotting question ... 

If I have a plot that I've meticulously set the bounds for using

the gca and gcf property 'Position',

I can save the .fig file within a script/function using:

saveas(gcf,outputFigureName,'fig');

and it looks like it is supposed to. However, when I
similarly try to save an encapsulated postscript file using
either:

saveas(gcf,outputFigureName,'eps');

or

print(gcf,'-depsc',outputFigureName);

the page dimensions are messed up and the figures are not
where I set them as seen in the fig file.

However, if I go to the saveas command manually in the menu
of the open .fig file, that saves the dimensions very nicely. 

I have seen the same problem with .png files as well.

How can I get the functional form of saveas (or print) to
behave with saving eps files? 

Thanks ...