Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Font Size adjustment in Figure label and scale
Date: Sat, 18 Oct 2008 23:06:01 +0000 (UTC)
Organization: Boston University
Lines: 24
Message-ID: <gddq4p$k2r$1@fred.mathworks.com>
References: <gdd71j$6ln$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1224371161 20571 172.30.248.38 (18 Oct 2008 23:06:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 18 Oct 2008 23:06:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 844160
Xref: news.mathworks.com comp.soft-sys.matlab:496000


"Peter Schreiber" <schreiber.peter15@gmail.com> wrote in message <gdd71j$6ln$1@fred.mathworks.com>...
> Hi guys,
> Does somebody know how to adjust the font size for figure labes, and also the scale on the figure?
> The default is 10 but I would like to set it to 16.
> 
> I tried the following, but it didn't work.
> 
> set(gcf,'FontSize',16)
> 
> Best Regards,
> Peter

Hello Peter, to do this you have to grab a handle for the XLabel properties, which is a child of gca. So ... 

h_xlabel = get(gca,'XLabel');
set(h_xlabel,'FontSize',N); 

where N is your font size number. To view the other properties that can be set, simply do a 

get(h_xlabel)

It helps me to have 'more on' in order to view the output better.