xlabel fontsize

Hi,

Could you tell me if it is possible to control the fontsize of the x and ylabel. I can't found anything about this in the tutorial ...

I tried without success :

plot([1,2,3])
x_label = get(gca(), "xlabel")
set(x_label,fontsize=30)
xlabel('Points')
show()

Thanks a lot,

Xavier.

Dear Xavier,

I am also a brand new user. I can use this one to set the fontsize which may be useful for you.

xlabel('Points', fontsize=30)

Best regards,
Chris

Xavier MERIAUX wrote:

···

Hi,

Could you tell me if it is possible to control the fontsize of the x and ylabel. I can't found anything about this in the tutorial ...

I tried without success :

plot([1,2,3])
x_label = get(gca(), "xlabel")
set(x_label,fontsize=30)
xlabel('Points')
show()

Thanks a lot,

Xavier.

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

Chris wrote:

Dear Xavier,

I am also a brand new user. I can use this one to set the fontsize which may be useful for you.

xlabel('Points', fontsize=30)

Xavier,

Also note that absolute and relative font sizes are allowed, e.g. fontsize = 'large' or fontsize = 'larger'. This usage uses the default font size to scale up or down the particular text that you are drawing. To scale up all fonts proportionally, just change the default font size. This is easier than using font sizes in points as in the previous example.

See the documentation about fonts at http://matplotlib.sourceforge.net/fonts.html

-- Paul

···

Xavier MERIAUX wrote:

Hi,

Could you tell me if it is possible to control the fontsize of the x and ylabel. I can't found anything about this in the tutorial ...

I tried without success :

plot([1,2,3])
x_label = get(gca(), "xlabel")
set(x_label,fontsize=30)
xlabel('Points')
show()

Thanks a lot,

Xavier.

--

Paul Barrett, PhD Space Telescope Science Institute
Phone: 410-338-4475 ESS/Science Software Branch
FAX: 410-338-4767 Baltimore, MD 21218