change the size of front

Dennis Benzinger Dennis.Benzinger at gmx.net
Tue Jul 4 07:13:45 EDT 2006


aliassaf wrote:
> hi, 
> I want to change the size of the front in a legend, i wrote this small
> program and it got to me this message error!!!
> 
> from pylab import *
> plot([1,2,3],'r')
> legend('this',prop = FontProperties('smaller') )

Try

legend('this',prop = matplotlib.font_manager.FontProperties(size = 
'smaller'))

> show()
> 
> NameError: name 'FontProperties' is not defined
> 
> thanks 



Dennis



More information about the Python-list mailing list