Transparent background PNG

I'd like to be able to generate a png with a transparent

    > background so that I can overly multiple graphs on top of
    > each other (in a web page). I've tried the frameOn-False
    > discussed a couple of times in the mailing list it doesn't
    > produce the desired result. Is this possible?

figure(frameon=False)

must work for the figure frame. Do you need the axes to be
transparent too. Note that the figure and axes frames are both
matplotlib rectangles. You can control the transparency of the
rectangle by calling

rect.set_alpha(0.5)

You can access the figure Rectangle instance as

  fig.figPatch

and the Axes Rectangle instance as

  ax.axesPatch

Passing one of these instances to "help" or "set" will give more info.

JDH

John Hunter wrote:

figure(frameon=False)

must work for the figure frame.

Sorry, finger/brain trouble at this end - it works perfectly.

Robert