Skip to content

DOC: better document rcParams in savefig.* grouping #9030

@HDembinski

Description

@HDembinski

Feature request

Feature summary

The FAQ https://matplotlib.org/faq/howto_faq.html describes a way to make the figure patch transparent, see "Save transparent figures". It would be great to have an option for the matplotlibrc file to always make the figure patch transparent.

Code

As described in the FAQ, the following code makes the figure patch transparent.

from matplotlib import pyplot as plt
fig = plt.figure()
fig.patch.set_alpha(0.0) # set this via rcParams?

I am aware of the rcParams option "savefig.transparent" which makes the figure patch and the axis patch transparent. I only want the figure patch to be transparent, because this looks very nice on slides with a gradient on the background.

Matplotlib version

  • Operating System: MacOS
  • Matplotlib Version: 2.0.2
  • Python Version: 2.7.10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy