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.
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 toFalse.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
Actual outcome
An empty PNG file, that is transparent.
Expected outcome
An empty PNG file with only a white background.
Matplotlib version
print(matplotlib.get_backend())): module://backend_interaggPython was installed via pyenv (compiled from source), and matplotlib was installed through pipenv.