From: John H. <jdh...@ac...> - 2005-02-14 23:42:15
|
>>>>> "Robert" == Robert Leftwich <ro...@le...> writes: Robert> I'd like to be able to generate a png with a transparent Robert> background so that I can overly multiple graphs on top of Robert> each other (in a web page). I've tried the frameOn-False Robert> discussed a couple of times in the mailing list it doesn't Robert> 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 |