>>>>> "Derek" == Derek Hohls <[EMAIL PROTECTED]> writes:

    Derek> legend( ... prop=FontProperties('smaller') )
 
    Derek> as per the webpage, I get a warning message and the font
    Derek> size is unchanged.
 
    Derek> What is the best method for changing font properties
    Derek> (e.g. point size, color) for the legend?
 

I'm not sure why this isn't working, but one approach is to get all
the text instances from the legend and set their properties directly

l = legend(...)
for t in l.get_texts():
    t.set_fontsize(12)
    t.set_color('red')

See also 


http://matplotlib.sourceforge.net/examples/legend_demo.py

JDH

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to