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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com