Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: How is a title position included when saving a fig file?
Date: Mon, 9 Nov 2009 07:29:04 +0000 (UTC)
Organization: Oticon A/S
Lines: 13
Message-ID: <hd8gc0$6kr$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1257751744 6811 172.30.248.35 (9 Nov 2009 07:29:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Nov 2009 07:29:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 745760
Xref: news.mathworks.com comp.soft-sys.matlab:583480


Why is the title position and axis label positions not saved in the following fig file? How can it be saved in the fig file?

plot(1)
h=title('test');
pos = get(h, 'Position');
set(h, 'Position', [pos(1)-0.5, pos(2), pos(3)]);
saveas(gcf, 'test', '.fig');
pause(1)
open('test.fig')

Best regards,

Niels