From: John H. <jdh...@ac...> - 2005-03-02 14:46:15
|
>>>>> "kristen" == kristen kaasbjerg <co...@ya...> writes: kristen> Hi again Working with legend I've encountered another kristen> problem. Changing the fontsize in a legend seems to be a kristen> little harder than first assumed. Is there an easy way to kristen> do this?? http://matplotlib.sf.net/examples/legend_demo.py shows you how to customize the legend text font size. The examples directory is really an indispensable tool in learning matplotlib. If you are using the source distribution, the examples directory is included. If you are using a binary distribution, a zip file is found here http://matplotlib.sourceforge.net/matplotlib_examples_0.72.zip The relevant code fragment from legend_demo.py is ltext = leg.get_texts() # all the text.Text instance in the legend set(ltext, fontsize='small') # the legend text fontsize JDH |