8000 DOC: better document rcParams in savefig.* grouping · Issue #9030 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
DOC: better document rcParams in savefig.* grouping #9030
Closed
@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

      0