legend frame and font size.

Hi All,

Can anyone tell me how to change the size of the legend produced by
matlab.legend independently of my axis tick labels?

lh=legend(['a','b','c'],loc=4,fontsize=8)

doesn't work and there seems to be nothing in the lh object that would
help.

Cheers,
Cory

I just sent patches about this to matplotlib-devel.

The current version has two problems with this:

* legend does not take kwargs. All the options like FONTSIZE, PAD and others
can only be set globally as class variables of Legend

* the option FONTSIZE - even if changed globally - is flat out ignored. It is
used once for a calculation, but the crucial routine Legend.draw() completely
ignores it.

Both problems are fixed with my patches (see matplotlib-devel or wait for them
to appear in CVS)

Ciao,
Norbert

···

On Tuesday 16 November 2004 18:52, Cory Davis wrote:

Hi All,

Can anyone tell me how to change the size of the legend produced by
matlab.legend independently of my axis tick labels?

lh=legend(['a','b','c'],loc=4,fontsize=8)

doesn't work and there seems to be nothing in the lh object that would
help.

Cheers,
Cory

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
_________________________________________Norbert Nemec
         Bernhardstr. 2 ... D-93053 Regensburg
     Tel: 0941 - 2009638 ... Mobil: 0179 - 7475199
           eMail: <Norbert@...399...>