Never mind - I missed a key point in the documentation.  For anyone who's wondering:

lg = legend()
lg.get_frame().set_facecolor('black')

works fine.

--Patrick

On 9/5/07, Patrick Bradley <patrick.bradley@gmail.com> wrote:
Hi all,

Can you change the background of the figure legends generated by matplotlib?  I'd like to have some white-on-black figures for a few presentations that I'm giving, and I can change the figure and axes facecolor attributes accordingly (as well as the default text and axis label colors), but I can't find an option anywhere to change the background of the legend: it still shows up as a white box.  Any ideas?

Thanks in advance.

Yours,
Patrick