help with fonts in legends

I wanted to use this code to set the label font in my legends:

from pylab.font_manager import fontManager, FontProperties
font = FontProperties(size='x-small')
legend(legends,prop=font)

but I'm getting "ImportError: No module named font_manager".

Can someone help me set legend size? Thanks.

Stephen

Hi Stephen,

ยทยทยท

On Sunday 22 April 2007 23:35, Stephen Boulet wrote:

I wanted to use this code to set the label font in my legends:
from pylab.font_manager import fontManager, FontProperties
...
but I'm getting "ImportError: No module named font_manager".

Can someone help me set legend size? Thanks.

I'm not sure about font properties at all, but for me the following seems to
work: >>>from matplotlib.font_manager import fontManager

regards,

Matthias