'Image display bug on Pycharm notebook, it is displayed in negative automatically

I have a bug with the display of my images in my notebook on pycharm, indeed the image is automatically put with a negative filter:

import imageio

img = imageio.imread('imageio:astronaut.png')
img.shape, img.dtype

%matplotlib inline
import matplotlib.pyplot as plt
plt.imshow(img)
plt.title('Debug image')
plt.axis('off')

But on google colab for example the image is displayed normally with the same code.

do you have any solutions to this problem? Thanks



Solution 1:[1]

I found the answer sorry that was just my theme on my IDE so change it if you have the same bug x)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 CestDoux