Closed
Description
Bug summary
Failed to use matplotlib.pylot on windows
Code for reproduction
import numpy as np
import matplotlib.pyplot as plt
x=np.linspace(-1,1,50)
y1=2*x+1
y2=x**2
plt.figure()
plt.plot(x,y1)
plt.show()
Actual outcome
Expected outcome
it should generate a line figure
Additional information
all simple plot programs I ran failed
python version is 3.10.0
matplotlib is 3.7.0
I ran this program on windows 10.
I installed matplotlib through the pycharm interpreter.
Operating system
windows
Matplotlib Version
3.7.0
Matplotlib Backend
No response
Python version
No response
Jupyter version
3.7.0
Installation
pip