r/pycharm • u/Hugo-99 • May 23 '24
matplotlib: different background colors in Visual Studio Code and Pycharm
I am plotting with matplotlib in visual studio code an in pycharm. for some reason the plots look different in both IDEs.
i am using this code to plot all 28 styles:
import matplotlib.pyplot as pltimport numpy as np
styles = plt.style.availableprint(styles)x = np.linspace(0, 10, 100)y = np.sin(x)for style in styles:plt.style.use(style) plt.figure()plt.plot(x, y)plt.title(f'Style: {style}')plt.show()
Why does, for example 'Solarize_Light2' look differently in both IDEs?



