change the size of front

A

aliassaf

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') )
show()

NameError: name 'FontProperties' is not defined

thanks
 
D

Dennis Benzinger

aliassaf said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top