Thread Subject: The matter of the lost title position in the fig file

Subject: The matter of the lost title position in the fig file

From: Niels

Date: 10 Nov, 2009 07:44:02

Message: 1 of 5

Hello,

I would simply like to change a title position and save the figure in a fig file.

Example:

plot(1,1)
h=title('test');
set(h, 'Position', [0.5, 2, 2]);
saveas(gcf, 'figure_1', 'fig');

The plot saved in the file "figure_1.fig" contains the title. The title is however located at the default position. Why is this? Is there a way to save the title position in the fig file?

Thanks,

Niels

Subject: The matter of the lost title position in the fig file

From: Herve

Date: 10 Nov, 2009 13:02:04

Message: 2 of 5

http://www.mathworks.com/support/solutions/en/data/1-8UNP4I/?solution=1-8UNP4I

Subject: The matter of the lost title position in the fig file

From: Niels

Date: 11 Nov, 2009 07:35:04

Message: 3 of 5

Thank you. I found a workaround. Instead of saving the information in the fig file I simply modify it after I open it. This yields the same results in the context. The context is to publish the fig files in a report with the 'publish' command.

Anyway it makes no sense that Matlab figures can not save this information. Sometimes when you use subplots you need to change position of the title and labels in order to seperate these from other text objects such as axis tics. I hope this is changed in future releases of Matlab.

Subject: The matter of the lost title position in the fig file

From: Matt Fig

Date: 11 Nov, 2009 14:56:06

Message: 4 of 5

Does anyone else find this language from the above referenced doc. a bit of a cop-out?

"LABELS and TITLE are standard graphics objects which are supposed to be located at some specific position to justify their meaning and significance. Repositioning these objects defeats the purpose of their existence."

My question is, why allow L & T to be moved at all if moving defeats the purpose of their existence? I am really surprised by this wording from TMW.

Subject: The matter of the lost title position in the fig file

From: Yair Altman

Date: 11 Nov, 2009 20:49:06

Message: 5 of 5

"Matt Fig" <spamanon@yahoo.com> wrote in message <hdeja6$9bu$1@fred.mathworks.com>...
> Does anyone else find this language from the above referenced doc. a bit of a cop-out?
>
> "LABELS and TITLE are standard graphics objects which are supposed to be located at some specific position to justify their meaning and significance. Repositioning these objects defeats the purpose of their existence."
>
> My question is, why allow L & T to be moved at all if moving defeats the purpose of their existence? I am really surprised by this wording from TMW.


I agree the text needs rephrasing.

I have personally repositioned labels and title on several occasions, to make better use of the available space between my axes and the surrounding figure components. Another typical case is when I have textual tick labels - having the axes labels on the same side of the tick labels looks horrible, so I simply reposition the general xlabel/ylabel to the other side of the axes box.

Just my $0.02...

Yair Altman
http://UndocumentedMatlab.com
 

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
tmw_cop_out Matt Fig 11 Nov, 2009 10:04:46
rssFeed for this Thread

Contact us at files@mathworks.com