Thread Subject: How is a title position included when saving a fig file?

Subject: How is a title position included when saving a fig file?

From: Niels

Date: 9 Nov, 2009 07:29:04

Message: 1 of 2

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

Subject: How is a title position included when saving a fig file?

From: Cheryl Danner

Date: 16 Nov, 2009 02:12:03

Message: 2 of 2

Niels,

I use MATLAB 2008, and as far as I know, it is not saved. Because I need to epeatedly use the same figure for a task, my solution is to include a line of code to reposition the title in my script along with my plotting functions. This is not to say that I've spent a lot of time looking into it and found that you absolutely can't save it -- it just seemed easier to do the workaround.

-Cheryl

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com