Something similar was added to SVN yesterday. Pass "transparent=True" to savefig. This will set both the figure rectangle and the axes rectangles to transparent.
If you just want a transparent figure rectangle, you can do: fig().figurePatch.set_alpha(0.0) Maybe this should be made an option on the "transparent" kwarg to savefig, something like: transparent = 'figure' | 'figure_and_axes' Or is that just making things too complicated? Cheers, Mike Stéfan van der Walt wrote: > Hi all, > > I'm generating plots for a document with a non-white background, and I > need the outer rectangle (the one is normally gray on the screen) to > be transparent. Savefig doesn't seem to have such an option: is it > possible to do it already, and if not, would there be any interest in > a patch? > > Regards > Stéfan > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel