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

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


On Mar 20, 8:20 pm, Carl <carlwenr... at gmail.com> 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})

subplot(111)
plot(x,y)
ylabel("Vert",  fontsize=15)
xlabel("Horiz", fontsize=20)
show()

--
Hope this helps,
Steven



More information about the Python-list mailing list