How do I change the font size for the default coordinates in matplotlib?

attn.steven.kuo at attn.steven.kuo at
Fri Mar 21 06:12:01 CET 2008

On Mar 20, 8:20 pm, Carl <carlwenr... at> wrote:
> I've searched the user manual (and this forum) but I don't see
> anything that helps.

Did you mean the font size for the ticks or for
the labels?  Here's an example:

from pylab import *

x = arange(0, 2*pi, 0.01)
y = sin(2*pi*x)

rcParams.update({'xtick.labelsize': 5, 'ytick.labelsize': 10})

ylabel("Vert",  fontsize=15)
xlabel("Horiz", fontsize=20)

Hope this helps,

More information about the Python-list mailing list