Closed
Description
Bug report
Bug summary
Since 3.0.3 imshow() produces "inverted" colors, instead of just including the image as is.
Code for reproduction
from PIL import Image
import matplotlib.pyplot as plt
img = Image.open("map.png")
plt.imshow(img)
plt.savefig("plot.png")
Expected outcome
(until 3.0.2)
Matplotlib version
- Operating system: win 7/10
- Matplotlib version: 3.0.3, 3.1.0
- Matplotlib backend (
print(matplotlib.get_backend())
): TkAgg - Python version: 3.7.2
- Jupyter version (if applicable):
- Other libraries: Pillow (6.0.0)
matplotlib installed from pip