ytick fontsize for exponentials

Hi matplotlib users

I am trying to fit a substantial number of subplots into a single plot.
I would therefore like to reduce the font size of my x- and yticks. Some
of the plots contain very large numbers on the y-axis. Using the default
formatting this means that the exponential will be written above the
plot. When the font size of the y-axis is reduced the font size of the
exponential above the plot is not reduced as shown in the example code
below:

import pylab

pylab.figure()
x = [1, 2, 3]
y = [1e13, 2e13, 3e13]
pylab.plot(x,y)
pylab.xticks(fontsize=6)
pylab.yticks(fontsize=6)
pylab.savefig('test.png')

Has anyone got any suggestions on how to reduce the font size of the
exponential as well or is this a bug in matplotlib?

- Jesper

ยทยทยท

--
Jesper Larsen, Ph.D.
Scientist
National Environmental Research Institute
University of Aarhus
Department of Marine Ecology
Frederiksborgvej 399
DK-4000 Roskilde
Denmark
tel: +45 46301866
http://www.neri.dk