8000 Transparency always on for PNG in version 3.1.0 · Issue #14339 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Transparency always on for PNG in version 3.1.0 #14339
Closed
@cLupus

Description

@cLupus

Bug report

Bug summary

While saving a figure using savefig, the flag for transparency is ignored, and the resulting PNG has a transparent background, even though transparency is set to False.

Note: This affect matplotlib 3.1.0. The error did not occur in 3.0.3 on the same machine as described bellow.

Code for reproduction

# Paste your code here
from matplotlib import peplos as plt
fig = plt.figure(figsize=[20, 10], frameon=False)
fig.savefig('./test.png', transparent=False)
plt.close()

Actual outcome

An empty PNG file, that is transparent.

Expected outcome

An empty PNG file with only a white background.

Matplotlib version

  • Operating system: macOS 10.14.5 / CentOS 6.
  • Matplotlib version: 3.1.0
  • Matplotlib backend (print(matplotlib.get_backend())): module://backend_interagg
  • Python version: 3.6.1
  • Jupyter version (if applicable):
  • Other libraries:

Python was installed via pyenv (compiled from source), and matplotlib was installed through pipenv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0