By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,538 Members | 1,428 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,538 IT Pros & Developers. It's quick & easy.

change the size of front

P: n/a

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
--
View this message in context: http://www.nabble.com/change-the-siz....html#a5165024
Sent from the Python - python-list forum at Nabble.com.

Jul 4 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 4 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.